In other things you can read files the same way as in the ol' DOS days.
------------------
Dance with me......
------------------
Dance with me......
char * name = "c:\autoexec.bat";
long handle = NULL;
long length = NULL;
unsigned char * buffer = NULL;
handle = open(name);
length = getlength(handle);
read(handle, buffer, length);
------------------
When life hands you lemons, throw them at God's head.
CreateFile - to open a file
ReadFile/Ex - to read from a file
WriteFile/Ex - to write to a file
CloseHandle - to close a file
VirtualNext
[This message has been edited by Xai (edited November 30, 1999).]
Thanx