Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 994 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 994 Bytes

FileLoad

Note: It is recommended that you use SwiftFiles, which combines FileLoad with FileDelete and FileSave. (SwiftFiles has a Swift 2 compatible branch.)

Simple file load for iOS coded in Swift 1.2 (Xcode 6.3 Beta 4).

// Load data
FileLoad.loadData(path:String, directory:NSSearchPathDirectory, subdirectory:String?) -> NSData?
FileLoad.loadDataFromTemporaryDirectory(path:String, subdirectory:String?) -> NSData?

// Load strings
FileLoad.loadString(path:String, directory:NSSearchPathDirectory, subdirectory:String?, encoding enc:NSStringEncoding = NSUTF8StringEncoding) -> String?
FileLoad.loadStringFromTemporaryDirectory(path:String, subdirectory:String?, encoding enc:NSStringEncoding = NSUTF8StringEncoding) -> String?

See also FileSave and FileDelete