David_Dave_Tamashiro@cup.portal.com (05/07/91)
I recently compiled the "editfile" example in the SDK examples directory. I got the BC++ to compile the program by creating a project file with editfile.c, editfile.def, etc. My problem was that the read() function would just not work. It always returned 0 (which caused the program to display the file error window). I finaly got the program to work by replaceing the read() function with _read() function. Does anyone know why this worked?? Is the SDK example wrong?? I noticed _read() is supposed to be for dos while read() is supposed to be for "UNIX". What does the MicroSoft read() function do ?? Thanks, Dave