Which of the following is correct for opening a file and attaching it to a file named File.txt? Assume proper file inclusion and proper using directives.
a)```
open(outStream, “File.txt”, ios::app)
```
b) ```
ifstream inStream;
inStream.open(“File.txt”);
```
c) ```
ifstream inStream(“File.txt”);
```
d) ```
ofstream inStream;
onStream.open(“File.txt”, ios::app);
```
e) ```
ifstream inStream(“File.txt”, ios::app);
```
a)```
open(outStream, “File.txt”, ios::app)
```
Computer Science & Information Technology
You might also like to view...
A Green Machine
What will be an ideal response?
Computer Science & Information Technology
Corner points join path segments at a(n) ____.
A. miter B. anchor point C. curve D. angle
Computer Science & Information Technology
Describe the inter-mail server vulnerability.
What will be an ideal response?
Computer Science & Information Technology
Five different types of document properties like those shown in the accompanying figure exist..
Answer the following statement true (T) or false (F)
Computer Science & Information Technology