Reading the content of a file (RESOLVED)

Posted By: TehV

Reading the content of a file (RESOLVED) - 01/16/14 11:21

Hi,
I wish to read the content of a file into a string. The content of the string should be the exact content of the file, including all carriage returns (\r), line feeds (\n) as well as any other control characters.
My problem is that the functions that come with Gamestudio appear to cut out carriage returns and line feeds no matter what I do.

How can I do this?
Cheers,
~TehV
Posted By: Superku

Re: Reading the content of a file - 01/16/14 11:42

You could try to use file_load instead and work directly with the buffer to extract single characters. Or use file_asc_read if that works for you.
Posted By: TehV

Re: Reading the content of a file - 01/16/14 13:18

That worked. Thanks!
© 2024 lite-C Forums