# \#files

**URL:** https://forums.swift.org/tag/files/661.md

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

---

## [\[Accepted with modifications\] SE-0529: FilePath](https://forums.swift.org/t/accepted-with-modifications-se-0529-filepath/87125)

<div class="topic-metadata">

**Author:** [@John\_McCall](https://forums.swift.org/u/John_McCall)\
**Replies:** 18\
**Last updated:** [July 9, 2026, 4:02am UTC](https://forums.swift.org/t/accepted-with-modifications-se-0529-filepath/87125 "2026-07-09T04:02:01Z")

</div>

Hello, Swift community. The review of SE-0529: FilePath was initially scheduled to run from April 22nd through May 4th, 2026. Over the course of the review, several rounds of amendments were made to the proposal: first h…

---

## [SE-0529: Add FilePath to the Standard Library](https://forums.swift.org/t/se-0529-add-filepath-to-the-standard-library/86194)

<div class="topic-metadata">

**Author:** [@John\_McCall](https://forums.swift.org/u/John_McCall)\
**Replies:** 102\
**Last updated:** [June 5, 2026, 4:22am UTC](https://forums.swift.org/t/se-0529-add-filepath-to-the-standard-library/86194 "2026-06-05T04:22:39Z")

</div>

Hello, Swift community. The review of SE-0529: Add FilePath to the Standard Library begins now and runs through May 4th, 2026. Reviews are an important part of the Swift evolution process. All review feedback should be…

---

## [FileHandle fails to reduce memory usage](https://forums.swift.org/t/filehandle-fails-to-reduce-memory-usage/84629)

<div class="topic-metadata">

**Author:** [@jeremyabannister](https://forums.swift.org/u/jeremyabannister)\
**Replies:** 7\
**Last updated:** [February 9, 2026, 9:59am UTC](https://forums.swift.org/t/filehandle-fails-to-reduce-memory-usage/84629 "2026-02-09T09:59:21Z")

</div>

I had prototyped a script that processed files one at a time, and initially it simply loaded the full files into memory with Data(contentsOf:). Then I began to need to process large files and so I tried to update the scr…

---

## [The officially recommended way to read from a file](https://forums.swift.org/t/the-officially-recommended-way-to-read-from-a-file/83485)

<div class="topic-metadata">

**Author:** [@jeremyabannister](https://forums.swift.org/u/jeremyabannister)\
**Replies:** 4\
**Last updated:** [December 14, 2025, 10:52pm UTC](https://forums.swift.org/t/the-officially-recommended-way-to-read-from-a-file/83485 "2025-12-14T22:52:02Z")

</div>

The documentation of FileManager.fileExists(at:) includes this note: Note: Attempting to predicate behavior based on the current state of the file system or a particular file on the file system is not recommended. Doi…

---

## [Is there a simple way to write a string to a file descriptor?](https://forums.swift.org/t/is-there-a-simple-way-to-write-a-string-to-a-file-descriptor/76455)

<div class="topic-metadata">

**Author:** [@anselmschueler](https://forums.swift.org/u/anselmschueler)\
**Replies:** 4\
**Last updated:** [December 10, 2024, 9:47am UTC](https://forums.swift.org/t/is-there-a-simple-way-to-write-a-string-to-a-file-descriptor/76455 "2024-12-10T09:47:37Z")

</div>

Is there a way to write a string to a file descriptor without first opening a file there, for e.g. if the shell has set up the file descriptors for you? An equivalent to GNU libc dprintf, essentially.

---

## [Observe Process while it is running](https://forums.swift.org/t/observe-process-while-it-is-running/63981)

<div class="topic-metadata">

**Author:** [@mpilman](https://forums.swift.org/u/mpilman)\
**Replies:** 2\
**Last updated:** [March 27, 2023, 3:54pm UTC](https://forums.swift.org/t/observe-process-while-it-is-running/63981 "2023-03-27T15:54:39Z")

</div>

Hi all, I am a relatively new Swift user (I am more experienced in C++ but giving this a go). I am working on a test framework that is supposed to do the following: Setup a empty PostgreSQL instance Connect to it and…

---

## [How to Read Data from Text File iOS 15](https://forums.swift.org/t/how-to-read-data-from-text-file-ios-15/55653)

<div class="topic-metadata">

**Author:** [@cj.whitaker](https://forums.swift.org/u/cj.whitaker)\
**Replies:** 1\
**Last updated:** [March 1, 2022, 3:05am UTC](https://forums.swift.org/t/how-to-read-data-from-text-file-ios-15/55653 "2022-03-01T03:05:15Z")

</div>

I've followed the tutorials, yet I cannot seem to get this feature to work. When the user selects the barButtonItem, DocumentPicker opens allowing the user to select a .txt file. I then take the URL to the selected file …
