Disk

0.1.0

💾 Output and Input for Files
0xOpenBytes/Disk

What's New

0.1.0

2023-03-07T00:38:04Z

Disk

Disk is a convenience typealias for o.file that represents a file system disk. It provides easy access to the file system and its manipulation operations.

Usage

Here are some examples of how you can use Disk:

// Read the contents of a file
let data = try Disk.data(filename: "file.txt")

// Write a string to a file
try Disk.out("Hello, world!", filename: "greeting.txt")

// Delete a file
try Disk.delete(filename: "file.txt")

Full Changelog: https://github.com/0xLeif/Disk/commits/0.1.0

Disk

Disk is a convenience typealias for o.file that represents a file system disk. It provides easy access to the file system and its manipulation operations.

Usage

Here are some examples of how you can use Disk:

// Read the contents of a file
let data = try Disk.data(filename: "file.txt")

// Write a string to a file
try Disk.out("Hello, world!", filename: "greeting.txt")

// Delete a file
try Disk.delete(filename: "file.txt")

Description

  • Swift Tools 5.7.0
View More Packages from this Author

Dependencies

  • o2.1.0
Last updated: Sun Mar 10 2024 00:54:41 GMT-1000 (Hawaii-Aleutian Standard Time)