DataBuffer
Monkey Forums/Monkey Programming/DataBuffer| 
 | ||
| 
Import mojo
Import brl.databuffer
	Method OnCreate:Int()
		Local buf = DataBuffer.Load("data/test.bin")
                If Not memory Then
			Print("Missing data file!")
		End
                Local memory:String = LoadString("data/data/test.bin")
		Print "File size=" + memory.Length() + " bytes"
		
		If Not memory Then
			Print("Missing data file!")
		End
		'Print "Memory Length:" + memory.Length()
		Return 0
	End
 | 
| 
 | ||
| In the code above, memory is always null :P | 
| 
 | ||
| SLotman this is the correct post and code. [a]http://www.monkey-x.com/Community/posts.php?topic=10190[/a] |