Some arrangements to the code in Read File