S
sea__chan
Hi
I am writing a ruby script to insert some content into the beginning of
some files.
The files would be used in Windows or Mac, when I use File.puts method
to write the file, it changes the line ending of the file.
Any way to let ruby keep the previous line-ending of the file?
Thanks
I am writing a ruby script to insert some content into the beginning of
some files.
The files would be used in Windows or Mac, when I use File.puts method
to write the file, it changes the line ending of the file.
Any way to let ruby keep the previous line-ending of the file?
Thanks