Extra blank line in download text file (.txt)
Posted 30 September 2005 - 05:16 PM
It's not a pretty solution. If you are on a Unix box, the following commands will kill the final line of the file.
linecount=`expr $file - 1`
tail -$linecount $file > $file2
FYI: I wrote a quick update to write one line of text to an SEQ file. I used the ALIAS command as well.
On ProIV 5.5 r 5.1.7, on RedHat ES 3.0, I did not get a blank line.
Posted 30 September 2005 - 07:57 PM
Sounds a bit like ProIV is terminating the last line (probably with CRLF) when in fact Windows programs don't expect the last line to be terminated (ie. CRLF is really a line separator sequence not a line terminator for Windows text files).
On Unix, terminating the last line (with an LF) is correct and does not result in the appearance of a final blank line (ie. on Unix the LF character is a terminator not a separator).
If that's the case (and I am just speculating) then yes it's a pretty basic bug in ProIV
Posted 01 October 2005 - 06:23 AM
Edited by Vol Yip, 01 October 2005 - 06:24 AM.
Reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users