Thread: A standard way of reading files?

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    380

    A standard way of reading files?

    Is there a standard way of reading text files? Or would ot be left for the programmer to decide?

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Left to the programer. Read by character, read by line, read by word, etc. It depends on what read function you invoke.

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

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    fgets is pretty good for most purposes - unless you have a real good reason for wanting to read a char at a time

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reading data from consecutively named files
    By a1pro in forum C Programming
    Replies: 10
    Last Post: 04-15-2005, 01:48 AM
  2. reading from files
    By recluse in forum C Programming
    Replies: 25
    Last Post: 12-26-2004, 10:33 AM
  3. A little help reading from files...
    By Invincible in forum C++ Programming
    Replies: 4
    Last Post: 04-03-2002, 10:43 AM
  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