Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
1. while(fin.read((char*)&F,sizeof(F))){}
where fin is a file input variable (ifstream)

2. fout.write((char*)&F,sizeof(F));
where fout is a file output variable (ofstream)

3. fin.getline(ch, 20, ' ');

4. ch = (char)fin.get();
where ch is a char variable

What I have tried:

Understanding them without a description and direct application in a code is tough
I regret not paying attention in class
Posted
Updated 18-Dec-16 5:41am
Comments
Richard MacCutchan 18-Dec-16 11:40am    
"I regret not paying attention in class"
So what do you expect from us? You must have some notes on all these functions, or you could just use Google to navigate your way to the documentation.

1 solution

1. Read some data.
2. Write some data.
3. Read a single line of text.
4. Read a single character.
 
Share this answer
 
Comments
CPallini 18-Dec-16 13:06pm    
Short and to thew point. :-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900