Welcome! Log In Create A New Profile

Advanced

Read And Write ini's?

Posted by AllRight 
Read And Write ini's?
November 10, 2009 03:16AM
what would the code be to say, add the line "test", at the end of the file,
so would i want to carry it into a C Array or what?
im just looking into programming a SQL Server, and want to start with writing to ini files.
kthxbai
Re: Read And Write ini's?
November 10, 2009 04:22AM
This is not a god idea to save SQL data as plain text. To much information will be needed: type, collation, attributes, null, extra (autoincrement), ...

SQLite is very good for that, just code the TCP/IP stack to go with it.
Re: Read And Write ini's?
November 11, 2009 06:00AM
Quote
AllRight
what would the code be to say, add the line "test", at the end of the file

do you mean just add "\ntest" to the end of an existing file?

if so, just open it with append.

something like this
FILE* fp;
fp = fopen("sd:/thefile.ini", "a");  //"a" is for append
fprintf(fp,"\ntest");
fclose(fp);
Sorry, only registered users may post in this forum.

Click here to login