|
From: Per W. <pw...@ia...> - 2006-05-04 11:38:38
|
fstream has a constructor taking a file descriptor. You can retrieve the file descriptor from a FILE by use of the fileno(FILE*) function. One reason for interfacing FILE and a C++ stream is if the C++ code makes calls to an existing C library. However, great care has to be taken to vaoid problems with cached data when switching between C and C++ access methods for an open file. /Per W On Thu, 4 May 2006, KrowniX ()--() wrote: > ..????? > What do you mean...with convert a c FILE* to a cpp fstream...? > You want to create files using the FILE*..and then use c++ class to make = operations with this file? > give me an example ...maybe i could help..but do you try to read the fstr= eam library to see how it works? > > Krownix > > Erik Schmidt <esc...@gm...> escreveu: is there a way a to convert= a c FILE* to a cpp fstream? > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job ea= sier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > --------------------------------- > Abra sua conta no Yahoo! Mail - 1GB de espa=E7o, alertas de e-mail no ce= lular e anti-spam realmente eficaz. |