471,850 Members | 1,032 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,850 software developers and data experts.

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 3685
9,065 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 NeoPa | last post: by
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.