Thread: Files&Records(Entering records)

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    14

    Unhappy Files&Records(Entering records)

    Hi!
    I need help on my program.(well, I haven't started yet)
    Anyone knows anything about entering records?.

    E.g. I need a program that You can enter the stats for a tennis player. Then after you are done it will save it in a .txt file in a form of a table. Then If you want to view those records it will be view it in the same window(which is MS-DOS) by a player's rank. If anyone thinks that's easy, its not for me . (The teacher expects us to know that by our selves, and he said that we can use 'fscanf', 'fprintf', 'fopen', 'fclose', 'fputs', 'fgets', 'fputc', 'fgetc'.. Whatever those mean :S).

    I need help, please. Any ideas or programs would be appreciated.
    Thanks

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Lookup structs and read about all those lovely IO functions.

    There's plenty of examples on here if you'd only search for it
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 26
    Last Post: 07-05-2010, 10:43 AM
  2. reading a file into a block
    By mickey0 in forum C++ Programming
    Replies: 19
    Last Post: 05-03-2008, 05:53 AM
  3. Counting number from a random file
    By kamisama in forum C Programming
    Replies: 42
    Last Post: 02-22-2005, 05:16 PM
  4. display records held in a struct
    By colinuk in forum C Programming
    Replies: 3
    Last Post: 02-02-2005, 07:51 AM
  5. For loop ; printing records
    By Prezo in forum C Programming
    Replies: 3
    Last Post: 09-15-2002, 06:38 AM