answersLogoWhite

0

How the end of file can be detected in c plus plus?

Updated: 8/18/2019
User Avatar

Wiki User

9y ago

Best Answer

Use the istream::eof() method.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How the end of file can be detected in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How to complete this C plus plus End Of File controlled while loop program?

Add the missing parts.


How do you create .exe file in c plus plus?

You can create an exe-file from your C++ source, if you have a compiler.


How do you open a file in c plus plus?

fopen()


Can you rewrite a cuda file in c c plus plus language?

Yes, you can rewrite a cuda program originally written in c in c plus plus.


Is there a file concept in c plus plus?

No. The standard does not define nor require a file concept.


What is a scatter file in c or c plus plus programming?

Scatter File is a linker script file used by RVCT/Keil for ARM processors. It is used by arm linker.


Explain any six file commands in C plus plus?

There's no commands in C++.


How do you concatinate two files in c plus plus?

Copy the first file then append the second file to the copy.


Is it possible to skip to a new line when reading from a file in c plus plus?

To skip to a new line when reading from a file, assuming you are using a sequentially organized file, the usual case, you need to read and discard characters until you encounter the end-of-line character.


How do you convert a notebook file to a c plus plus file?

There are no "notebook files"; C++ sources are ordinary text files. When you save a file from NotePad, select File/SaveAs and select 'file type: all', then enter the name, e.g. myprogram.cpp


What is the header file for getchar in c plus plus?

I think its in conio.h or stdio.h


Which function is used to determine the position of the put pointer in a file in c plus plus?

The function ftell returns the position of the file pointer for a file.