* Removed try-catch from saveFile function.