03-17-2010 11:09 AM
Hi all,
I got rid of the extra space. The array to spreadsheet string function is the cause of that when the string in each element of the array has a carriage return. I got rid of that carriage return and only add the return for the txt file. Let me know if there is a better way.
If possible, can you still give me a low down on the differences among carriage return, line feed, and end of line constant for a txt file and a string indicator? Thx!
yik
03-17-2010 11:42 AM
Jeff Bohrer wrote:
1 picture in lieu of 1000 words Constants set to hex display
Actually, what the EOL constant is depends on which operating system you are using. That's why for multi-platform compatibility you should use the EOL constant instead of hard-coding to CR, LF, or CR/LF for new lines.
03-17-2010 11:45 AM
I know they have differen ascii code, but what are they physical differences, such as cursor location?
yik
03-17-2010 11:47 AM
Hi Smercurio,
Would it be safe to say use EOL all the time? When would you choose carriage return or line feed over EOL? Thanks!
Yik
03-17-2010 11:59 AM
Hi all,
I saw the definition below from the NI site, but not sure do I understand it completely. For CR, it moves the cursor to the beginning of the line without advancing to the new line. I don't see how CR is doing that. For LF, it moves the cursor to the next line without going to the beginning of the line. That doesn't make sense either. The definition for EOL makes the most sense to me. The definition for EOL is what I would expect for the CR and LF as well. Can you explain? Thanks!
Yik
The Carriage Return (CR) character (0x0D, \r) moves the cursor to the beginning of the line without advancing to the next line. This character is used as a new line character in Commodore and Early Macintosh operating systems (OS-9 and earlier).
The Line Feed (LF) character (0x0A, \n) moves the cursor down to the next line without returning to the beginning of the line. This character is used as a new line character in UNIX based systems (Linux, Mac OSX, etc)
The End of Line (EOL) character (0x0D0A, \r\n) is actually two ASCII characters and is a combination of the CR and LF characters. It moves the cursor both down to the next line and to the beginning of that line. This character is used as a new line character in most other non-Unix operating systems including Microsoft Windows, Symbian OS and others.