1.

Give the function of put()> get() and getline() w.r.t. text files.

Answer»

1. put() function
The put() function is used to write a single character to the associated stream.

2. get() function
The get() function is used to read a single character from the associated stream.

3. getline() function
The use of getline() function is to read a whole line of text.



Discussion

No Comment Found

Related InterviewSolutions