C++ homework 1. The methods seekp and seekg are used with ____ access files 2.If
ID: 3723044 • Letter: C
Question
C++ homework
1. The methods seekp and seekg are used with ____ access files
2.If you want to open a file with more than one ios flag, you can join 2 or more flags using the ___ character.
3.If you want to open a file for both input and output you would use an ____ file.
4.fstream allows which of the following:
create new files
modify files
write files
read files
5.Ofstream allows which of the following:
write files
read files
create new files
modify files
1. The methods seekp and seekg are used with ____ access files
Explanation / Answer
1.
The methods seekp and seekg are used with Random access files.
In this file Have two pointers those are
2.
If you want to open a file with more than one ios flag, you can join 2 or more flags using the vertical bar ( | ) character
Example:
3.
If you want to open a file for both input and output you would use an ofstream file.
Example:
4.
Option 2 and 3 correct.
fstream allows which of the following read and write on files.
5.
OPTION3 CORRECT.
Ofstream allows create new files.
Example:
ofstream outFile("yourTextFile.txt");
It creates a file whose name is yourTextFile.txt
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.