Problem
1. Write a program that reads a file specified as argument to locate all variable assignments of the form variable=value, where each assignment is placed on a separate line. It should then print from memory a sorted list of these variables along with their values. The variable assignment could be the only characters in a line or be preceded or succeeded by whitespace.
2. How do you print a sorted list of all environment variables in the form variable=value?