Slide 9.5: This book's link library (cont.)
Slide 9.7: This book's link library (cont.)
Home

This Book's Link Library (Cont.)


CloseFile
It closes a file that was previously opened. The file is identified by a 32-bit integer handle, which is passed in EAX.

CreateOutputFile
It creates a disk file and opens it in output mode. Pass the offset of a file name in EDX. When the procedure returns, OpenInputFile
It opens an existing file for input. Pass it the offset of a filename in EDX. When it returns, ReadFromFile
It reads an input file into a buffer. Pass it an open file handle in EAX, the offset of a buffer in EDX, and the maximum number of bytes to read in ECX. When the procedure returns, WriteToFile
It writes the contents of a buffer to an output file. Pass it a valid file handle in EAX, the offset of the buffer in EDX, and the number of bytes to write in ECX. When the procedure returns, EAX contains a count of the number of bytes written.