1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    New York
    Rep Power

    Cool Read a file FAST

    I would like to know what is the absolute fastest way to read in an ASCI text file using C language. Should I use one of the standard C function below and loop it until EOF, or is there a faster method.

    1) fgetc
    2) fgetl
    3) Some other fucntion?

    In addition are there any programmatic adjustments that I could make to improve I/O file read performance.
    Last edited by RolandG; April 8th, 2003 at 01:59 PM.
  2. #2
  3. Moderator Emeritus
    Devshed Supreme Being (6500+ posts)

    Join Date
    Feb 2002
    Austin, TX
    Rep Power
    Cross posting isn't cool... you posted an identical thread in C/C++/Obj-C.
    DrGroove, Devshed Moderator | New to Devshed? Read the User Guide | Connect with me on LinkedIn
    The Most Important Article You Can Read as a Developer

IMN logo majestic logo threadwatch logo seochat tools logo