The MASM Forum Archive 2004 to 2012

Project Support Forums => IDE Development and Support => Easy Code => Topic started by: etow on March 01, 2008, 01:51:46 AM

Title: How do create a text file, update text file and close text file in Easy Code ?
Post by: etow on March 01, 2008, 01:51:46 AM
Hi

How do you create a text file, update and save a text file, and close a text file in Easy Code Visual projects?

Thanks
Title: Re: How do create a text file, update text file and close text file in Easy Code ?
Post by: Ramon Sala on March 01, 2008, 09:39:03 AM
Use the OpenTextFile method which opens o creates a file and returns an open "handle" to the specified file in the Eax register. With the open "handle", use the ReadTextFile method for reading, or the WritTextFile method for writing (all of these methods are explained in the Easy Code help file). When you no longer need the file, close the returned "handle" by calling the CloseHandle API function.

Ramon