03-01-2017 06:51 AM
Hi everyone,
I want to create a text file which has LF character as EOL. But in LabWindows the "\n" or "0x0A" generate CR/LF as EOL. How can i solve this problem?
Or can we convert this text file with windows command prompt?
Solved! Go to Solution.
03-01-2017 08:54 AM
CVI should convert the newline to CR+LF only if you use OpenFile in ASCII mode:
When you perform I/O on a file in binary mode, carriage returns (CR) and linefeeds (LF) receive no special treatment. When you open the file in ASCII mode, each CR/LF combination translates to an LF when reading, and each LF translates to a CR/LF combination when writing.
Try opening the file in binary mode and write to as you are already doing: you should have no CR added at the end of lines.