Warning 11.4.1.
In the book, you will only be able to use datafiles in programs that are set up to include them. Make sure to check the instructions for any exercises as to what datafiles are available for use in that program.
Numbers.txt:
Data: Numbers.txt10 20 30 40 50 60
"Numbers.txt" to specify that file.
C:\Programs\HelloWorld or \home\astudent\HelloWorld). But it is possible to be currently working in one directory and launch a program that is somewhere else.
cin and cout are streams that send data between the console and a program. cin is an input stream, it bring information from the console to the program. cout on the other hand is an output stream that sends data from the program to the console. Each time we use >> or << we are either removing some data from a stream or inserting some data into it.
ifstream and ofstream. They are similar to cin and cout in that they are also streams, but they stream information to or from a file instead of the console.