file i/o

This is a discussion on file i/o within the C Programming forums, part of the General Programming Boards category; i have a problem , i need read in a file in binary mode and create an array through Malloc ...

  1. #1
    Unregistered
    Guest

    file i/o

    i have a problem , i need read in a file in binary mode and create an array through Malloc since i need to know the exact size of the file i need to use stat or fstat any help on how to do this would be great im not looking for the answer just point me in the right direction
    thanks

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    So where exactly is your problem?

    1) Do you not know how to use fopen() ?
    2) Do you not know how to use fread() ?
    3) Do you not know how to use malloc() ?
    4) Do you not know how to use fclose() ?

    Where do you need help?

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 09:35 AM
  2. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  3. 2 questions surrounding an I/O file
    By Guti14 in forum C Programming
    Replies: 2
    Last Post: 08-31-2004, 12:21 AM
  4. File I/O problems!!! Help!!!
    By Unregistered in forum C Programming
    Replies: 4
    Last Post: 05-17-2002, 09:09 PM
  5. advice on file i/o
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 11-29-2001, 05:56 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21