Hey raiden,
its me again
I just wrote a txt file with notepad with two lines:
Quote:


Text
Text2




Then I opened it with HexEdit and looked up the hex codes of the return sign.
Its: "0D 0A"
Now converted to decimal numbers (ascii) its: "13 10"
So I tested it with 3DGS and it works.
The line break is visible in notepad.
So you simply have to replace your
"file_str_write(fhandle,"\n");" with the following two lines:
Code:

//.. your code before \n
file_asc_write(fhandle,13);
file_asc_write(fhandle,10);
//.. your code after \n



So your complete code would look like this:
Code:

var fHandle;
action testCar
{
while(key_g == 0) { wait(1); }
fHandle = file_open_write("Car1.txt");

file_var_write(fHandle,int(my.x));

//add a new line here:
file_asc_write(fhandle,13);
file_asc_write(fhandle,10);

file_var_write(fhandle,int(my.y));

//add a new line here:
file_asc_write(fhandle,13);
file_asc_write(fhandle,10);

file_var_write(fHandle,int(my.z));
file_close(fHandle);
}



Last edited by Thunder; 03/19/06 10:26.