Reading a line from a file

This is a discussion on Reading a line from a file within the C Programming forums, part of the General Programming Boards category; Hey, Im writing a small program whicht pings a host, outputs the result into a txtfile and then undertakes action. ...

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    67

    Reading a line from a file

    Hey,

    Im writing a small program whicht pings a host, outputs the result into a txtfile and then undertakes action.

    but how can i check if the line (timed out for example) exists in that file?

    any help is appreciated

  2. #2
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    Read in the file, line per line, and scan for keywords.

    Look for fopen() and fscanf() online.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A development process
    By Noir in forum C Programming
    Replies: 37
    Last Post: 07-10-2011, 11:39 PM
  2. Reading random line from a text file
    By helloamuro in forum C Programming
    Replies: 24
    Last Post: 05-03-2008, 11:57 PM
  3. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 05:54 PM
  4. reading file line by line
    By ameet in forum C Programming
    Replies: 7
    Last Post: 09-16-2004, 11:54 AM
  5. what does this mean to you?
    By pkananen in forum C++ Programming
    Replies: 8
    Last Post: 02-04-2002, 03:58 PM

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