Write a program that reads a fi le foo, checks the line length and saves the lines in foo1 or
foo2 depending on whether the line length exceeds 80 or not.
Write a program that accepts an integer n and a fi lename as command-line arguments to
print the last n lines of a fi le (like the UNIX tail command). (HINT: First count the number of
lines in the fi le.)
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here