Create FileSave.swift

Swift version of the code