Thread: Cprograming file saving

  1. #1
    Registered User
    Join Date
    Dec 2019
    Posts
    2

    Cprograming file saving

    Hello so i need to connect all four txt fails togheter.
    So how it works the file. Example:
    Students:2
    Enter data: Name Surname 3 group
    Name Surname 9 group

    Next time when you will run the program it needs to show previous saved students info
    Name Surname 3 group
    Name Surname 9 group
    And you can add more students
    File append.txt File append
    File read malloc.txt File read malloc
    File write.txt File write
    Students.txt students

  2. #2
    Registered User Ivory348's Avatar
    Join Date
    Oct 2019
    Posts
    75
    Your query isn't terribly clear. It might be a good idea to rephrase your question in a different way.

  3. #3
    Registered User
    Join Date
    Dec 2019
    Posts
    2
    you run file and write student info and need to be saved in file. Next time when you run program it will show previous saved inputed info about students and if you want you can add morestudent info.
    Just put in your codeblock or atom... student.txt file you will see how it works

  4. #4
    Registered User Ivory348's Avatar
    Join Date
    Oct 2019
    Posts
    75
    Quote Originally Posted by icywolf View Post
    you run file and write student info and need to be saved in file. Next time when you run program it will show previous saved inputed info about students and if you want you can add morestudent info.
    Just put in your codeblock or atom... student.txt file you will see how it works
    Read/Write structure to a file in C - GeeksforGeeks

  5. #5
    Registered User
    Join Date
    Aug 2019
    Location
    inside a singularity
    Posts
    308
    you run file and write student info and need to be saved in file. Next time when you run program it will show previous saved inputed info about students and if you want you can add morestudent info.
    Just put in your codeblock or atom... student.txt file you will see how it works

    Bold of you to assume someone else will run your code for you so that they can figure out what's wrong with it and post the errors and solutions to you in a more presentable way when all you did is asked a terribly stated question. Be more clear, post your code here using the code tags and don't link people elsewhere. Most importantly, read this:

    https://cboard.cprogramming.com/cplu...uncements.html


    EDIT:

    I'm confused whether you even meant asking a question in first place... or just shared code for someone else to maybe come across and use.
    Last edited by Zeus_; 12-14-2019 at 10:54 AM.
    "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook, The Wizardry Compiled

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File handing and saving records to file problem
    By loveable in forum C Programming
    Replies: 18
    Last Post: 12-29-2012, 09:53 AM
  2. Saving a file
    By TyPR124 in forum C++ Programming
    Replies: 10
    Last Post: 12-01-2007, 04:26 PM
  3. Saving to a file!
    By MrMe913 in forum C Programming
    Replies: 4
    Last Post: 04-23-2007, 09:54 AM
  4. Does cprograming.com have a irc channel?
    By LiNk in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 08-24-2004, 07:04 PM
  5. help, cprograming
    By OPENCCT in forum C Programming
    Replies: 1
    Last Post: 09-21-2001, 04:18 AM

Tags for this Thread