Fixed readfile class for windows.