News:

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

File example?

Started by EddieB, November 03, 2006, 05:24:55 PM

Previous topic - Next topic

EddieB

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

PBrennick

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
The GeneSys Project is available from:
The Repository or My crappy website