Page 1 of 1

[Implemented] ReadString() length parameter

Posted: Thu Feb 08, 2007 7:57 pm
by Trond
It would be great with a ReadString() function that returned x characters as a string, that would work similar to this:

Code: Select all

Memory = AllocateMemory(Length)
ReadData(File, Memory, Length)
String.s = PeekS(Memory, Length)
FreeMemory(Memory)
Instead it could be like this:

Code: Select all

String.s = ReadStringX(File, Length)

Re: ReadString() length parameter

Posted: Thu Feb 08, 2007 8:54 pm
by PB