|
From: Gregor P. <Gre...@dl...> - 2001-06-21 09:40:41
|
Hmm I am not shure if it is the answer to that what I need. I don't want to prompt the user for file operations, I like to save some programminternal values to a file. For varialbes like: int i = 0; String valueID = "X"; I wanna get a Textfile that contain: X = 0 By using something like: fprintf ( fileID, "%c = %d", valueID, i ); I didn't figured out yet if "WriteFile()" work the same way. Thanx so far Jose Manuel Padron Carrillo wrote: > --- Gregor Peter <Gre...@dl...> escribió: > Can someone tell me > how to open and write into a textfile (even into > > a > > already opened one) > > Is there under Windows something like fprintf () ? > > > > CreateFile() > ReadFile() > WriteFile() > > I send as attachment one of Dev-C++ examples where those functions are > used. > > I hope this help. |