File IO system using command line arguments