In article <79************ **************@ posting.google. com>,
Rajesh N Thipse <ra**********@y ahoo.com> wrote:
Victor Bazarov <v.********@com Acast.net> wrote in message
news:<ZX****** ************@ne wsread1.dllstx0 9.us.to.verio.n et>... Rajesh N Thipse wrote: > Files can be created using _creat.
Really? I don't know such function in the Standard library.
--------------------
In VC++, the following piece of code generates "temp" file
[...]
But that is not standard C++. It uses Windows-specific functions. Here's
what I got when I tried to compile it under Mac OS X:
[Jon-Bells-Computer:~/Documents/c++] jtbell% c++ create.cpp
create.cpp:1:16 : io.h: No such file or directory
create.cpp:8: error: `main' must return `int'
create.cpp: In function `int main(...)':
create.cpp:9: error: `_S_IREAD' undeclared (first use this function)
create.cpp:9: error: (Each undeclared identifier is reported only once for
each
function it appears in.)
create.cpp:9: error: `_S_IWRITE' undeclared (first use this function)
create.cpp:9: error: `_creat' undeclared (first use this function)
create.cpp:15: error: `_close' undeclared (first use this function)
--
Jon Bell <jt*******@pres by.edu> Presbyterian College
Dept. of Physics and Computer Science Clinton, South Carolina USA