reading a word from file

This is a discussion on reading a word from file within the C Programming forums, part of the General Programming Boards category; Hello, which function i can use so as to read from a file word by word(apart from scanf)? thanks......

  1. #1
    Registered User
    Join Date
    Aug 2010
    Posts
    230

    reading a word from file

    Hello,

    which function i can use so as to read from a file word by word(apart from scanf)?
    thanks...

  2. #2
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,438
    One you write yourself, probably based on fgetc(). Any reason you don't want to use fscanf()?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can you help me about tolower() in file
    By nctar in forum C Programming
    Replies: 7
    Last Post: 05-12-2010, 10:04 AM
  2. Help with finding word frequency in a text file.
    By aeolusaether in forum C Programming
    Replies: 15
    Last Post: 04-04-2010, 09:59 PM
  3. multiple file loading. so fruturated! help!
    By psychopath in forum Game Programming
    Replies: 5
    Last Post: 05-09-2005, 05:13 PM
  4. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 01:58 AM

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