how are you inputting the file, why not use Line Input, that might solve the problem