Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!fernwood!portal!cup.portal.com!David_Dave_Tamashiro From: David_Dave_Tamashiro@cup.portal.com Newsgroups: comp.windows.ms.programmer Subject: BC++ and SDK editfile example Message-ID: <42085@cup.portal.com> Date: 7 May 91 09:29:45 GMT Distribution: usa Organization: The Portal System (TM) Lines: 15 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