I am implementing streaming data straight (after ASCII conversion) to file.
But I find when checking the file with notepad that there is an inexplicable first character in every line.
It seems to be related to the number of characters in each CR/LF terminated line.
there are 844 line in the file:-
If the line is 111 chars in length (including the CR & LF Chars) then there is a lower case 'o' in the first position
If the Line is 112 chars its a 'p'
113 a 'q' and the final line is 114 chars and starts with 'r'
Where Temp is a short string of max 120 chars, I have found that normal strings cannot be streamed successfully
Tempstring is a normal string.
Fs is a TFilestream object.
Temp looks to be as expected at the point of writing.
Steve: N.M.N.F.
If something is popular, it must be wrong: Mark Twain
That's just perfectly normal Paranoia everyone in the universe has that: Slartibartfast
But I find when checking the file with notepad that there is an inexplicable first character in every line.
It seems to be related to the number of characters in each CR/LF terminated line.
there are 844 line in the file:-
If the line is 111 chars in length (including the CR & LF Chars) then there is a lower case 'o' in the first position
If the Line is 112 chars its a 'p'
113 a 'q' and the final line is 114 chars and starts with 'r'
Code:
Temp := ShortString(TempString)+#13#10;
Fs.writebuffer(Temp, length(Tempstring) + 2);
Where Temp is a short string of max 120 chars, I have found that normal strings cannot be streamed successfully
Tempstring is a normal string.
Fs is a TFilestream object.
Temp looks to be as expected at the point of writing.
Steve: N.M.N.F.
If something is popular, it must be wrong: Mark Twain
That's just perfectly normal Paranoia everyone in the universe has that: Slartibartfast