Input the compelete file rather than line by line