Community Server

The platform that enables you to build rich, interactive communities
Welcome to Community Server Sign in | Join | Help

Strange problem with LF+CR characters in OUTPUT command

  •  03-14-2010, 8:29 AM

    Strange problem with LF+CR characters in OUTPUT command

    John,

    I'm really puzzled with this one. I installed Stats101 on a different PC, using different folder paths by mistake. Quite obviously, my old programs failed to find the correct paths / files. After fixing the paths in the code, the programs are working fine, except for one case: the OUTPUT FILE command produces 0A (hexa) for the \n character, instead of 0A 0D, ie my output text file contains LF but no CR...and the output is unreadable.

    I tried reinstalled JRE 1.6.18, reinstalled Stats 1.4.7, and wrote a trivial program to output one line of text containing "\n". Same problem, the file shows a weird squarish character in Notepad (instead of a new line), and 0A (only) in a hex editor.

    The problem is probably with my PC, but I cannot figure out where I might have broken something. Both machines are running WinXP-SP2, and both were running stats101 fine 3 weeks ago. I haven't patched anything except JRE and Stats101.

    Any ideas of why OUTPUT might be doing something funny suddenly?

    PS: The WRITE command produces multiple lines correctly, and the OUTPUT command writes lines correctly on the screen (ie without FILE option).

    Gus
View Complete Thread
Powered by Community Server, by Telligent Systems