Using .txt files (understading lines)

This is a discussion on Using .txt files (understading lines) within the C Programming forums, part of the General Programming Boards category; Hello, i got a problem, i wanna create a program tha will look in a .txt file and will give ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,668
    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,825
    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, 02: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

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