Saturday, May 9, 2009

Help in C++ File Handling?

Write a program which can read, write, delete and update an object from the file using C++.


Sample out put of the program:





1) Enter New Record.


2) Update Record


3) Delete Record


4) Search Record





Enter Your Choice! 1








Enter Student Name: xxx


Enter Student ID : xxxx





NOTE: These informations about the Student Object should be stored in the text file.





Out Put of the Sample Program:





Student Name : xxxx


Student ID : xxxx








At the end I request also try to illustrate the deletion and updation process in words if you can do this for the student which is in search of some informations about file handling in C++

Help in C++ File Handling?
That is going to be quite difficult. If you are still stuck with your project assignment may be you can contact a programming expert live at website like http://askexpert.info/ .
Reply:Open up your compiler documentation or on-line help file and look up fstream. There will probably be sample code showing you how to open, read, write, and close a file.





If your manual doesn't have it, Google: fstream example code


to find snippets of example code.
Reply:Dude.... you no offensive but you need to do your own project to learn how to do it...


No comments:

Post a Comment