Thread: Reading Large Files!!!

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    2

    Reading Large Files!!!

    Hi,

    I have a small project that requires me to read a large tx file, it can be up to 20Mb's would C be a good language to do this in?. I will have to scan information from this file and the manipulate data obtained.

    What language has the best facilities to do this???

    Any sugestions would be great!

    Cheers

    Jon

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    I use WIN32 API and read file over 20Mb without problem. I use

    dFileSize=GetFileSize(hFile,NULL);

    Then allocate memory for the whole file. Use a pointer to move thru the file.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. using mmap for copying large files
    By rohan_ak1 in forum C Programming
    Replies: 6
    Last Post: 05-13-2008, 08:12 AM
  2. Reading files in a directory
    By roktsyntst in forum Windows Programming
    Replies: 5
    Last Post: 02-07-2003, 10:04 AM
  3. Reading Files off the internet
    By Unregistered in forum C++ Programming
    Replies: 0
    Last Post: 03-24-2002, 02:18 PM
  4. problem reading files in C
    By angelfly in forum C Programming
    Replies: 9
    Last Post: 10-10-2001, 11:58 AM
  5. Need Advice in reading files
    By jon in forum C Programming
    Replies: 4
    Last Post: 10-07-2001, 07:27 AM