*.INI Files
#1
Posted 01 October 2003 - 09:39 AM
The Lion King</span>
#2
Posted 01 October 2003 - 02:05 PM
Either use ofstream and ifstream or do it the C way, ie: FILE* fread/fwrite. Nothing special about them. They're mostly just text files anyway.
- Me blog
#3
Posted 01 October 2003 - 03:00 PM
The Lion King</span>
#4
Posted 01 October 2003 - 03:15 PM
FILE* fp = fopen( "file.ini", "r" );
char c;
while( c = fread( &c, 1, 1, fp ) )
{
if( c == ' ' )
cout<< "A space! A space! w00000t"<< endl;
}
writing to ini files
FILE* fp = fopen( "file.ini", "a+" ); char someText[256]; strcpy( someText, "text with spaces" ); fwrite( someText, 1, strlen(someText)+1, fp );
- Me blog
#5
Posted 01 October 2003 - 03:45 PM
#6
Posted 01 October 2003 - 04:24 PM
-Loving a Person is having the wish to see this Person happy, no matter what that means to yourself.
-No matter what it means to myself....
#7
Posted 01 October 2003 - 07:04 PM
#8
Posted 02 October 2003 - 03:10 AM
The Lion King</span>
#9
Posted 02 October 2003 - 09:27 AM
oh, and, yes, there is, in the win32 api, a special api to manipulate .ini files actually. never used it myself, though..
-Loving a Person is having the wish to see this Person happy, no matter what that means to yourself.
-No matter what it means to myself....
#10
Posted 02 October 2003 - 11:18 AM
#11
Posted 01 September 2004 - 07:44 AM
#12
Posted 01 September 2004 - 07:48 AM
-Loving a Person is having the wish to see this Person happy, no matter what that means to yourself.
-No matter what it means to myself....
#13
Posted 01 September 2004 - 07:55 AM
#14
Posted 01 September 2004 - 12:44 PM
hey dave i got xml serialization over the network working yesterday :)
#15
Posted 01 September 2004 - 12:57 PM
-Loving a Person is having the wish to see this Person happy, no matter what that means to yourself.
-No matter what it means to myself....
#17
Posted 01 September 2004 - 03:29 PM
#18
Posted 01 September 2004 - 04:18 PM
#19
Posted 01 September 2004 - 04:35 PM
#20
Posted 01 September 2004 - 05:50 PM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users













