Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Quick c question

Name: Anonymous 2010-11-07 21:30

Do FILE* work directly with the address of the file in the harddrive or is the file loaded into the ram and the FILE* works with that?

I mean, if I were making a small database and wanted to use a FILE* (as a member of the struct I use for the database) to the next element of the database would the FILE* still point ot the same location if I close the file and open it later?

Name: Anonymous 2010-11-08 2:48

If I remember shit correctly from my operating systems class ages ago, FILE* is just used as an index to some secret off-limits file handler array that your OS keeps track of.

Try opening a bunch of FILE*s and printing them as ints. The printed values would be more indexy than address-like.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List