468,513 Members | 1,772 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,513 developers. It's quick & easy.

how to save data in array permenantly

pls help.. i have no idea how to save data in array permentantly..
Aug 11 '06 #1
2 3604
9,056 Expert Mod 8TB
Write it to a file, look you the functions

fscanf <-- but don't use this function
Aug 11 '06 #2
Hi All,

Any array can be defined permanently by adding a "const" intializer to the array.

For example a sample array would look like...

const unsigned int A[5] = {1,2,3,4};

Similar consts can also be used for other data tyoes as well. A good suggestion would bt to go thru YashWant Kanetkars "Let Us C" which goes through these details ina very simple language.

I hope i hve made things simplr.
Aug 19 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by pfemat | last post: by
15 posts views Thread by Sharon | last post: by
5 posts views Thread by scrawford | last post: by
3 posts views Thread by =?Utf-8?B?Um9nZWxpbw==?= | last post: by
10 posts views Thread by Gilles Ganault | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.