1. Write a program that compares two fi les whose names are provided as user input. The program must quit with a suitable message that indicates the location in the file where the first mismatch was encountered.
2. Write a program that accepts an integer n and a filename as command-line arguments to print the first n lines of the fi le.
3. Assuming that the line length is limited to 256 characters, write a program that reads all lines of a text fi le into a 2D array. Display the lines saved in the array.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here