"Next Line" in file_write

Posted By: TWO

"Next Line" in file_write - 04/13/07 08:49

This code gives my a special char (looks like a []) instead of a next line?


file_str_write(Handle, str_create("//////////////////\n")); // \n = next line... or?


Posted By: nipx

Re: "Next Line" in file_write - 04/13/07 08:51

Code:
file_str_write(fHandle, "test \n")  



works for me.


nipx
Posted By: TWO

Re: "Next Line" in file_write - 04/13/07 08:57

Ah, ok, I see. I wrote to an .txt and the build in editor can't interpret those chars. If I write to an .h and then open it with VS everything works.

^^
Posted By: Gordon

Re: "Next Line" in file_write - 04/13/07 11:52

not sure if c-script has it or not but you could try this:

Code:

file_str_write(fHandle, "test \r\n")
[\code]

this works in C and probably lite-c
© 2024 lite-C Forums