fscanf how to read one by one?

This is a discussion on fscanf how to read one by one? within the C Programming forums, part of the General Programming Boards category; Hi again! I am very new! I've begun programming a few weeks ago! So please sorry for my next question: ...

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    34

    Question fscanf how to read one by one?

    Hi again! I am very new! I've begun programming a few weeks ago! So please sorry for my next question:

    If I read an ascii file with fscanf, is it that I read the first line, its put into a variable, then I read the second and so on?
    And if: how can I declarate variable one for line one and variable two for line two and so on? It could be nice if you'd answer!
    ThanX

  2. #2
    Registered User
    Join Date
    Nov 2002
    Posts
    34

    Exclamation

    Thank you a lot! I am glad about this possibility to get answers! I know, this this is NOT the way DEVELOPMENT should go, but I was realy busy the last week(s)! Thank you for the replies, thanks to all people posted/aswered my questions! If I have more time and better knowlegdes, maybe in a few monthes I will answer! I hope so! See you again, demonus

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. fscanf: read word from file
    By Dedalus in forum C Programming
    Replies: 1
    Last Post: 06-24-2009, 03:56 AM
  2. bytes lost with partial read in UDP
    By mynickmynick in forum Networking/Device Communication
    Replies: 3
    Last Post: 03-31-2009, 03:06 AM
  3. using FSCANF to read mixed text/double files
    By cfdprogrammer in forum C Programming
    Replies: 3
    Last Post: 03-23-2009, 04:18 AM
  4. Trouble Reading Data from Files
    By CConfusion in forum C Programming
    Replies: 11
    Last Post: 04-06-2006, 08:12 PM
  5. Using fscanf for reading numerical data from text file
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 06-15-2002, 06:18 PM

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