Wrote functions to modify file length