# Struggling to simply read from a file?

**URL:** <https://ziggit.dev/t/struggling-to-simply-read-from-a-file/13337>\
**Category:** Help\
**Tags:** standard-library\
**Created:** [December 3, 2025, 5:25pm UTC](https://ziggit.dev/t/struggling-to-simply-read-from-a-file/13337 "2025-12-03T17:25:18Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![stratts](https://ziggit.dev/user_avatar/ziggit.dev/stratts/32/5730_2.png) [@stratts](https://ziggit.dev/u/stratts)\
**Post date:** [December 4, 2025, 10:32am UTC](https://ziggit.dev/t/struggling-to-simply-read-from-a-file/13337/15 "2025-12-04T10:32:52Z")

</div>

Personally, I’d avoid assigning the interface to a variable at all, even a pointer. Just do `file_reader.interface.readSliceAll(&buffer)`. It’s longer, but I feel it’s perfectly readable and prevents this error from occuring in the first place.

---

_[View the full topic](https://ziggit.dev/t/struggling-to-simply-read-from-a-file/13337)._
