| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
C++ Help with a question in my book
Hi
Implement the Unix command tail -n, where n is the number of lines from the end of the file to be copied to stdout. I am having trouble understanding what this question means and dont understand what to do. Does anyone know what that question means? thx |
|
#2
|
|||
|
|||
|
The idea is the user specifies a file and a number of lines, and the program opens the file and displays the last n lines in the console. Look into fstream for file I/O.
|
|
#3
|
|||
|
|||
|
thx for your help.
you made it very clear. ![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > C++ Help with a question in my book |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|