I am upgradeing an application written in D3 to D7, the code is the same.
But I am getting an odd effect.
The original program saved data files with the stringlist savetofile method. Lines of text have been added to the string list with add(string); This should terminate each line with a CR ??
The lines are read back in (in blocks of 15) using this code
This worked as expected originaly.
But the D7 version dosnt seem to see the ends of the lines and reads the files as one long string.
If I view the files in notepad it is also displayed as one string with a small rectange where the CR should be.
If I edit this and put in a return then the D7 program reads it correctly.
The D3 executable can read the files in either format.
Does anyone know why this is happening.
[red]GNBM 4th Feb[/red] More on and other neat UK stuff at forum1091
Steve: Delphi a feersum engin indeed.
But I am getting an odd effect.
The original program saved data files with the stringlist savetofile method. Lines of text have been added to the string list with add(string); This should terminate each line with a CR ??
The lines are read back in (in blocks of 15) using this code
Code:
begin
for c := 0 to 15 do
begin
Readln(F, S);
//etc
This worked as expected originaly.
But the D7 version dosnt seem to see the ends of the lines and reads the files as one long string.
If I view the files in notepad it is also displayed as one string with a small rectange where the CR should be.
If I edit this and put in a return then the D7 program reads it correctly.
The D3 executable can read the files in either format.
Does anyone know why this is happening.
[red]GNBM 4th Feb[/red] More on and other neat UK stuff at forum1091
Steve: Delphi a feersum engin indeed.