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

    Join Date
    Apr 2003
    Location
    New York
    Posts
    140
    Rep Power
    12

    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
    Location
    Austin, TX
    Posts
    7,186
    Rep Power
    2265
    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

IMN logo majestic logo threadwatch logo seochat tools logo