Differentiate between ios::nocreate and ios:noreplace. Write the
1+1=2
C++ statement to move the get pointer to the beginning of the file. Assume
the name of ifstream object as F.
Answers
Answer:
Your answer is:
Explanation:
Hope it will help you.

Answer:
It’s the other way around. When ios::ate is set, the initial position will be the end of the file, but you are free to seek thereafter. When ios::app is set, all output operations are performed at the end of the file. Since all writes are implicitly preceded by seeks, there is no way to write elsewhere.
Explanation:
So far, we have been using the iostream standard library, which provides cin and cout methods for reading from standard input and writing to standard output respectively.
This tutorial will teach you how to read and write from a file. This requires another standard C++ library called fstream, which defines three new data types −
Data Type & Description
1
ofstream
This data type represents the output file stream and is used to create files and to write information to files.
2
ifstream
This data type represents the input file stream and is used to read information from files.
3
fstream
This data type represents the file stream generally, and has the capabilities of both ofstream and ifstream which means it can create files, write information to files, and read information from files.
#SPJ3