File resource did not check the last character of the file