Popularity
0.3
Declining
Activity
0.0
Stable
6
2
1

Code Quality Rank: L5
Programming language: Swift
Tags: Data Management     Files    

CFileWrapper alternatives and similar libraries

Based on the "Files" category.
Alternatively, view CFileWrapper alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of CFileWrapper or a related project?

Add another 'Files' Library

README

CFileWrapper

A simple wrapper for File handling in Swift without Foundation

You can read files, save files, append to files and list directories

Usage

if let hello = CFileWrapper.read("HelloWorld.txt") {
  print(hello)
}

Another way to read the file is using a completion handler

CFileWrapper.read("HelloWorld.txt") { text in
    guard let text = text else {
        print("Unable to read file")
        return
    }
    print(text)
}

You can also read by line with a delegate

class MyClass: CFileWrapperDelegate {
  func CFileWrapper(read line: String) {
    print(line)
  }
}

let myClass = MyClass()
CFileWrapper.readw("HelloWorld.txt", delegate: myClass)