Add function: save file to local system