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)
```
You might also like to view...
What gets sent to the program when a user clicks on an image map?
A) the name of the image map B) the number of pixels (relative to the upper left-hand corner) of the cursor within the image C) the color code of the location of the cursor D) the x- and y-coordinates of the cursor within the image E) the location (in pixels) from the upper left-hand corner of the entire screen
The most widely used SCP client is the command-line program ____________________, which is provided in many implementations of SSH.
Fill in the blank(s) with the appropriate word(s).