IncludeBinary?
-
- User
- Posts: 11
- Joined: Thu Apr 22, 2004 6:42 pm
IncludeBinary?
Hi, is it possible to include a .txt within an exe and then use the ReadString() command to get data from it?
Do it like this:
Remember about the >64k issue when using strings. If your strings are bigger than 64k you might run into problems, see: viewtopic.php?t=10759
Code: Select all
Debug PeekS(?File)
Debug "String is " + Str(MemoryStringLength(?File)) + " bytes long."
DataSection
File:
IncludeBinary "sample.txt"
EndDataSection