Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

how to clear text file swift

let text = ""
do {
     try text.write(to: filePath, atomically: false, encoding: .utf8)
   } catch {
     print(error)
   }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #clear #text #file #swift
ADD COMMENT
Topic
Name
3+4 =