need help with my code

Write an application in C/C++ to process library book records. The library book records should be read from a text file containing the following data: ISBN, author, title, edition,publisher/imprint and price. Use the Internet to gather data on at least 20 records and prepare them in the text file. As each book record is read, insert it into a list by using array of structures.
List – Display the list in tabular format. Each display should contain an appropriate heading and column captions;
Do you allready have some code?
ifstream inFile(“book.txt”);
if(!inFile)
cout<<”Error opening file\n”;
else
{
inFile.getline(book.isbn,15) ;
inFile.getline(book.author,20);
inFile.getline(book.title,30);
inFile.getline(book.edition,10);
inFile.getline(book.publisher,15);
inFile.getline(book.price,4);

inFile >>bookRecord ;
for (i = 0; i < bookRecord; i++)
inFile >> book.isbn\n >> book.author\n >> book.title\n >> book.edition\n>> book.publisher\n>> book.price>>endl;
}
inFile.close();
}

ofstream outFile(“book.txt”);
if(!outFile)
cout<<”Error opening output file, records are not updated.\n”;
else
{
For(int j=0; i< bookRecord; i++)
{
outFile<<book【j】.isbn<<endl;
outFile<<book【j】.author<<endl;
outFile<<book【j】.title <<endl;
outFile<<book【j】. edition<<endl;
outFile<<book【j】. publisher<<endl;
outFile<<book【j】. price<<endl;
}
outFile.close();
}
this is what i modified from others code..
Topic archived. No new replies allowed.