# \#io

**URL:** https://forums.swift.org/tag/io/384.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [Lack of general I/O stream protocols](https://forums.swift.org/t/lack-of-general-i-o-stream-protocols/87437)

<div class="topic-metadata">

**Author:** [@snej](https://forums.swift.org/u/snej)\
**Replies:** 2\
**Last updated:** [June 23, 2026, 4:05am UTC](https://forums.swift.org/t/lack-of-general-i-o-stream-protocols/87437 "2026-06-23T04:05:16Z")

</div>

Swift is lacking general-purpose byte-oriented data streams, e.g. equivalents of the venerable java.io.Stream classes, C++'s iostreams \[ick\], Python's StreamReader... Instead we have a hodgepodge of stuff. These are just…

---

## [Will Swift Documentation include File I/O?](https://forums.swift.org/t/will-swift-documentation-include-file-i-o/79947)

<div class="topic-metadata">

**Author:** [@DavidKo](https://forums.swift.org/u/DavidKo)\
**Replies:** 14\
**Last updated:** [May 25, 2025, 12:24pm UTC](https://forums.swift.org/t/will-swift-documentation-include-file-i-o/79947 "2025-05-25T12:24:25Z")

</div>

Hi everyone, I was working on my school programming language research course with Swift, for basic syntax and language philosophy it is great but lacking of some an official support on basic things like File I/O and I ne…

---

## [\[PITCH\] Pitch v2 for io\_uring support in Swift System on Linux](https://forums.swift.org/t/pitch-pitch-v2-for-io-uring-support-in-swift-system-on-linux/79498)

<div class="topic-metadata">

**Author:** [@David\_Smith](https://forums.swift.org/u/David_Smith)\
**Replies:** 0\
**Last updated:** [April 24, 2025, 11:42pm UTC](https://forums.swift.org/t/pitch-pitch-v2-for-io-uring-support-in-swift-system-on-linux/79498 "2025-04-24T23:42:08Z")

</div>

Previously: \[PITCH\] io\_uring support in Swift System on Linux Updated pitch: https://github.com/apple/swift-system/blob/david/ioring/NNNN-swift-system-io-uring.md Changes since the original pitch: Nested the other ty…

---

## [\[PITCH\] io\_uring support in Swift System on Linux](https://forums.swift.org/t/pitch-io-uring-support-in-swift-system-on-linux/78340)

<div class="topic-metadata">

**Author:** [@David\_Smith](https://forums.swift.org/u/David_Smith)\
**Replies:** 28\
**Last updated:** [April 18, 2025, 7:52am UTC](https://forums.swift.org/t/pitch-io-uring-support-in-swift-system-on-linux/78340 "2025-04-18T07:52:14Z")

</div>

Hi folks! In keeping with Swift System's policy of not being cross platform, I'd appreciate feedback on this low level abstraction for io\_uring, Linux's new-ish batch async syscall API. The "future directions" and "alte…

---

## [NIO's FileSystem vs NonBlockingFileIO](https://forums.swift.org/t/nios-filesystem-vs-nonblockingfileio/72318)

<div class="topic-metadata">

**Author:** [@Malien](https://forums.swift.org/u/Malien)\
**Replies:** 3\
**Last updated:** [June 8, 2024, 5:43pm UTC](https://forums.swift.org/t/nios-filesystem-vs-nonblockingfileio/72318 "2024-06-08T17:43:03Z")

</div>

There are two similar implementations of async file IO. NonBlockingFileIO in NIOPosix FileSystem in NIOFileSystem The implementations, on the first glance, look completely independent. Both of them basically utilize N…

---

## [What is the default encoding of String(contentsOf:)?](https://forums.swift.org/t/what-is-the-default-encoding-of-string-contentsof/38406)

<div class="topic-metadata">

**Author:** [@PatrickA](https://forums.swift.org/u/PatrickA)\
**Replies:** 9\
**Last updated:** [September 22, 2020, 8:51am UTC](https://forums.swift.org/t/what-is-the-default-encoding-of-string-contentsof/38406 "2020-09-22T08:51:45Z")

</div>

I'm trying to find documentation which specifies the default encoding of String(contentsOf:) The documentation I found is very laconic... ("No overview available.") https://developer.apple.com/documentation/swift/stri…

---

## [Is it possible to read a file saved in sandbox with InputStream?](https://forums.swift.org/t/is-it-possible-to-read-a-file-saved-in-sandbox-with-inputstream/37587)

<div class="topic-metadata">

**Author:** [@PatrickA](https://forums.swift.org/u/PatrickA)\
**Replies:** 4\
**Last updated:** [June 16, 2020, 9:23am UTC](https://forums.swift.org/t/is-it-possible-to-read-a-file-saved-in-sandbox-with-inputstream/37587 "2020-06-16T09:23:14Z")

</div>

I write a file in this way: let text = " Fußgänger" if let dir = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first { let fileUrl = dir.appendingPathCom…
