ruby one line file open & write. #ruby