I try to write a program which can (de-) cipher files. But I figured out that UNIX and Windows uses different methods to make new lines.
UNIX: \n
Windows: \r\n
I'm affraid that my program wouldn't be platform independent when you cipher a file on Windows and decipher it on UNIX. Any solution?
lg
Open the file in binary mode.