A standard way of reading files?

This is a discussion on A standard way of reading files? within the C Programming forums, part of the General Programming Boards category; Is there a standard way of reading text files? Or would ot be left for the programmer to decide?...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,341
    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, 09:33 AM
  3. A little help reading from files...
    By Invincible in forum C++ Programming
    Replies: 4
    Last Post: 04-03-2002, 09: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

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