Thread: Using .txt files (understading lines)

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    99

    Using .txt files (understading lines)

    Hello,
    i got a problem, i wanna create a program tha will look in a .txt file and will give an output in another .txt file,
    i know what to write in C to open a file but i don't know how can I do it to undersatnd the lines and what lines each is writing?
    Any ideas?

    By the way how is fgets() working, becaus ei know only gets()

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Try
    - searching the board for many excellent examples of using fgets
    - reading the FAQ
    - reading your manual pages

  3. #3
    Registered User
    Join Date
    Jul 2004
    Posts
    99
    - searching the board for many excellent examples of using fgets
    - reading the FAQ
    I searched 2 whole books for C

    searching the board for many excellent examples of using fgets
    good suggestion,
    thanks

  4. #4
    Registered User
    Join Date
    Jul 2004
    Posts
    99
    pleas help me in the .txt files then!

  5. #5
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    You've been warned about bumping your own posts before. This thread is closed.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. accessing all files in a folder.
    By pastitprogram in forum C++ Programming
    Replies: 15
    Last Post: 04-30-2008, 10:56 AM
  2. question: i/o data form .txt or .xls files ??
    By camelman in forum C++ Programming
    Replies: 21
    Last Post: 11-17-2007, 03:48 PM
  3. Help with loading files into rich text box
    By blueparukia in forum C# Programming
    Replies: 3
    Last Post: 10-19-2007, 12:59 AM
  4. Question About Blank Lines in Text Files
    By Zildjian in forum C++ Programming
    Replies: 11
    Last Post: 10-16-2004, 04:31 PM
  5. copy two files into one
    By waldis in forum C++ Programming
    Replies: 4
    Last Post: 10-20-2002, 06:08 PM