Problem
1. Write a program that accepts a filename and the delimiter string as arguments, and then displays each line with its fields reversed.
2. Write a program that accepts a filename (say, foo) as argument and then writes the first 10 lines to foo.1, the next 10 to foo.2, and so forth. Does it make any difference if any of these files exists?