Thread: How to get Memory Address of a File in HardDisk

  1. #1
    Registered User
    Join Date
    Sep 2013
    Posts
    1

    How to get Memory Address of a File in HardDisk

    I made a text file.
    I can do all File I/O functions in c. no problem!
    except that "I want to get the memory address of the begining of that File", so that I can access each character of the file by incrementing memory address.
    How to?

    Just a Learning Experiment

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    38,891
    The nearest you get to having a file with a memory address is through something like
    mmap(2) - Linux manual page
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 10
    Last Post: 07-10-2012, 04:28 AM
  2. Finding memory address using memory pattern
    By MindWorX in forum C++ Programming
    Replies: 1
    Last Post: 05-25-2008, 07:20 AM
  3. Replies: 2
    Last Post: 09-11-2007, 03:57 PM
  4. memory address
    By pktcperlc++java in forum C++ Programming
    Replies: 4
    Last Post: 03-29-2005, 09:15 AM
  5. Looking for a file in the HardDisk
    By BianConiglio in forum C Programming
    Replies: 11
    Last Post: 03-15-2004, 12:52 PM