File Reading Fix

Fixed a bug which caused an extra line at the end of a read file string.