MemPrint and MemInput
#6
@justsomeguy Easiest way to load a whole file at once is this method:

OPEN "desired_file.txt" FOR BINARY AS #1
file_length = LOF(1)
file_contents$ = SPACE$(file_length)
GET #1, 1, file_contents$
CLOSE #1

Open the file
Get the length of file.
Set a string to be that length.
Read the whole file into that string.
Close the file.
Reply


Messages In This Thread
MemPrint and MemInput - by SMcNeill - 08-22-2022, 12:59 AM
RE: MemPrint and MemInput - by OldMoses - 08-22-2022, 01:56 AM
RE: MemPrint and MemInput - by SMcNeill - 08-22-2022, 02:04 AM
RE: MemPrint and MemInput - by SMcNeill - 08-22-2022, 10:01 AM
RE: MemPrint and MemInput - by justsomeguy - 08-22-2022, 11:09 AM
RE: MemPrint and MemInput - by SMcNeill - 08-22-2022, 11:14 AM
RE: MemPrint and MemInput - by SMcNeill - 08-22-2022, 03:03 PM
RE: MemPrint and MemInput - by justsomeguy - 08-22-2022, 08:59 PM



Users browsing this thread: 1 Guest(s)