Latest 1.1.2
Homepage https://github.com/artFintch/Frog
License MIT
Platforms osx 10.10
Authors

Version
CI Status
Swift Version
Platform
License
Twitter

Tiny utility for read and write file line by line in Swift. I wrote this for easier work with files in some algorithms implementations. In some cases read and write line by line in Swift take a lot of part of an implementation.

  • Automatically closing a file after deinit a frog;
  • You don’t need to work with pointers explicitly;
  • Read and write line by line in one line.
Read:
let path = "path/to/your/file"
let input = Frog(path)

if let newLine = input.readLine() {
  print(newLine)
}
Write:
let path = "path/to/your/file"
let output = Frog(path, mode: .w)
output.write(line: "Croak-croak")

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

Frog is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'Frog'

Author

Vyacheslav Khorkov, [email protected]

License

Frog is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "Frog",
    "version": "1.1.2",
    "summary": "Tiny utility for read and write file line by line in Swift.",
    "description": "I wrote this for easier work with files in some algorithms implementations.nIn some cases read and write line by line in Swift take a lot of part of an implementation.",
    "homepage": "https://github.com/artFintch/Frog",
    "screenshots": "https://pbs.twimg.com/media/DsYELTUXQAEZ1zx.jpg",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Vyacheslav Khorkov": "[email protected]"
    },
    "source": {
        "git": "https://github.com/artFintch/Frog.git",
        "tag": "1.1.2"
    },
    "social_media_url": "https://twitter.com/artFintch",
    "platforms": {
        "osx": "10.10"
    },
    "swift_version": "4.2",
    "source_files": "Frog/Classes/**/*"
}

Pin It on Pinterest

Share This