News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

use contents of text file as data in program

Started by fusspot, August 27, 2007, 07:35:35 AM

Previous topic - Next topic

fusspot

How do I make the contents of a text file available to my program?
How does my program use these contents as data?

MichaelW

One method is to open the file, get the size, allocate a buffer, read the file data into the buffer, and then access the buffer as you would any other data. The MASM32 library read_disk_file procedure (masm32\m32lib\readdisk.asm), or the InputFile macro, can be used to automate the process.
eschew obfuscation