Memory Address

Hi.
Is HDD like RAM, in addressing ? (I mean does it have address too ?)
If yes, How can I create a pointer (or something else) that represents the address of a file in HDD ?
Thanks :-)
It doesn't work that way, you need to access the HD memory via the files like streams stdio and such
How Should I do that ?
A file system has different abstractions from memory. You probably mean a place in a file rather than on fhe media. You can identify an address in memory be a file name and offset into the file.

You can do that by opening the file and moving to that location with seek.

If you know nothing about files, you have a bit of reading to do. This should get you started.
http://en.wikipedia.org/wiki/Computer_file
http://en.wikipedia.org/wiki/File_systems
http://en.wikipedia.org/wiki/Fstream
http://en.wikipedia.org/wiki/Seekg
Topic archived. No new replies allowed.