How do I make the contents of a text file available to my program?
How does my program use these contents as data?
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.