B+ and BMax file system compatibility

BlitzMax Forums/BlitzMax Beginners Area/B+ and BMax file system compatibility

Mordax_Praetorian(Posted 2006) [#1]
Hey, I have a game engine being written in BlitzMax, the editor to go with said engine however is being written in Blitz+

One of the editors functions outputs a data file that should then be read by the engine, the data file contains both int and string variables

Max is able to read the ints from + just fine, however there is an issue when it comes to the strings

What I need to know is: should a string variable written to a file with B+ then be readable by BMax, or does the problem with the system lie elsewhere in my code?


REDi(Posted 2006) [#2]
Not tested, but I think this'll do it...
Function RetroReadString:String(Stream:TStream)
	Local size:Int = ReadInt(Stream)
	Return ReadString(Stream,Size)
EndFunction



Mordax_Praetorian(Posted 2006) [#3]
ty, I'll have a test


Mordax_Praetorian(Posted 2006) [#4]
Ok, it worked, ty very much