|
From: <jos...@ya...> - 2001-06-21 11:01:42
|
--- Gregor Peter <Gre...@dl...> escribió: > 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. You don't need to prompt the user if you don't like. It's just the example I sent. So with some minor modifications you can get what you need. > 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. > For WriteFile you need to pass a pointer to the string and the length of it (among other parameters). So in your case you can do a wsprintf() before and then pass the string as parameter for WriteFile(). Hope this helps. _______________________________________________________________ Do You Yahoo!? Yahoo! Messenger: Comunicación instantánea gratis con tu gente - http://messenger.yahoo.es |