Changing format of file