Thread: Reading a line from a file

  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,490
    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, 10:39 PM
  2. Reading random line from a text file
    By helloamuro in forum C Programming
    Replies: 24
    Last Post: 05-03-2008, 10:57 PM
  3. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM
  4. reading file line by line
    By ameet in forum C Programming
    Replies: 7
    Last Post: 09-16-2004, 10: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