The MASM Forum Archive 2004 to 2012

Project Support Forums => The GeneSys Development System => Topic started by: EddieB on November 03, 2006, 05:24:55 PM

Title: File example?
Post by: EddieB on November 03, 2006, 05:24:55 PM
Hey,

Ive been using GeneSys for the past couple of days, Still enjoying it immensely...

Could some one provide me an example of File I/O with GeneSys commands?

Many thanks
Eddie
Title: Re: File example?
Post by: PBrennick on November 03, 2006, 06:05:50 PM
I use the GeneSys editor. It uses file I/O. Would you like to see the source for that? Iczelions Tutorials have all been converted into GeneSys format. File Input is handled in this call:

    invoke ReadFile,hFile,pBuffer,NumBytes,pBytesRead,0

File Output is handled in this call:

    invoke WriteFile,hFile,pBuffer,NumBytes,pBytesWritten,0

You can then examine the code to see how the data is manipulated. If you wish to do file i/o without using RichEdit, let us know.

Paul