Any tutorials on how to use CFile or any other, to open a text file, get what's inside into memory, e.x Link List, and then put it back into text file when done? Please link me or guide me through this problem. Trying to get a Payroll system going.
Like abhimanipal said go check out that website because it is really useful
Here is something I made to show how to read in, sort, then output some data from a text file to a text file.
using namespace std;
bool cmp(PERSON a, PERSON b) //used for sorting
if( a.number > b.number )
vector<PERSON> people; //holds the data read in
ifstream in; //creates an in file stream
PERSON tempGuy; //holds data being read in
while(in >> tempGuy.name)
in >> tempGuy.number;
in.close(); //closes the stream when done with it
ofstream out; //creates an out file stream
sort(people.begin(), people.end(), cmp); //sorts the people based on number
for( it = people.begin(); it != people.end(); it++ )
out << (*it).name << " " << (*it).number << endl; //outputs people to text file
out.close(); //close when done
I Developed application in C# with crystal reports and created setup file in third party (Advance) Installer.When i installed my application on client system application is working but ...