Help with C++ program needed
I have a program for my assignment but I'm struggling with reading/writting to file. If anyone can help I'll be more than happy.
if(!ReadRecords("C:\\PDI\\Quotes.txt",Quotes, NumRecords))
{
cout << "Failed to find file quotes.txt";
}
else
{
do
{
system ("CLS");
if(i==0)
Quote.QuoteNum =INITIAL_QUOTE_NUMBER;
else
Quote.QuoteNum =Quotes[NumRecords-1].QuoteNum+1;
Quotes[NumRecords]=GetQuote(Quote);
NumRecords++;
cout << "\n\nEnter another quote?";
cin >> AnotherQuote;
} while(AnotherQuote=='Y'||AnotherQuote=='y');
file exist on disk in that location.