Updated main code to basic I/O structure

Added code to get input file stream and make output file stream with
file name from user input