[Implemented] ReadString() length parameter
Posted: Thu Feb 08, 2007 7:57 pm
It would be great with a ReadString() function that returned x characters as a string, that would work similar to this:
Instead it could be like this:
Code: Select all
Memory = AllocateMemory(Length)
ReadData(File, Memory, Length)
String.s = PeekS(Memory, Length)
FreeMemory(Memory)
Code: Select all
String.s = ReadStringX(File, Length)