Skip to content

sketchytech/FileLoad_Swift_iOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Simple file load for iOS coded in Swift

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages