|
@@ -259,7 +259,9 @@ In this exercise you will modify the `main` function and some of the pre-defined
|
259
|
259
|
```cpp
|
260
|
260
|
filemanip file("dvd_csv.txt") ;
|
261
|
261
|
```
|
262
|
|
- Its purpose is to associate the object called `file` with the data file `dvd_csv.txt`. When openning a data file in a program it is often necessary to specify the file's absolute path to guarantee that it is found regardless of where the executable is placed. Find out the **absolute path** of `dvd_csv.txt` and substitute it for the current `"dvd_csv.txt"` string. For example, after the change the line could look as follows:
|
|
262
|
+ Its purpose is to associate the object called `file` with the data file `dvd_csv.txt`. When openning a data file in a program it is often necessary to specify the file's **absolute path** to guarantee that the program finds the file regardless of where the executable is placed.
|
|
263
|
+
|
|
264
|
+ Find out the **absolute path** of `dvd_csv.txt` and substitute it for the current `"dvd_csv.txt"` string. For example, after the change the line might look as follows:
|
263
|
265
|
```cpp
|
264
|
266
|
filemanip file("/home/eip/functions-dvdinfo/dvd_csv.txt") ;
|
265
|
267
|
```
|