Which function is used to read a single character from a file in C++? 

  • extract() 
  • get() 
  • fetch() 
  • pull()
The get() method is used to read a single character from a file in C++. While extract() is not a standard method for this purpose, fetch() and pull() are not associated with file reading in the standard C++ library.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *