# kirupa.com - Behind the Code: Stacks and Heaps - Page 1

**URL:** https://forum.kirupa.com/t/kirupa-com-behind-the-code-stacks-and-heaps-page-1/633597
**Category:** programming
**Created:** [August 9, 2015, 6:32am UTC](https://forum.kirupa.com/t/kirupa-com-behind-the-code-stacks-and-heaps-page-1/633597 "2015-08-09T06:32:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)
#### Post date: [August 9, 2015, 6:32am UTC](https://forum.kirupa.com/t/kirupa-com-behind-the-code-stacks-and-heaps-page-1/633597/1 "2015-08-09T06:32:31Z")

</div>

Simply put, a file is nothing more than a container holding a collection of data. The data a file contains can be anything ranging from bits representing text to images to sounds, etc. In this tutorial, you will learn how to read text from files and write text back to files using the StreamReader and StreamWriter Classes.

* * *
This is a companion discussion topic for the original entry at [http://www.kirupa.com/net/reading\_writing\_files.htm](http://www.kirupa.com/net/reading_writing_files.htm)

---

<div class="post-metadata">

### Author: ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)
#### Post date: [August 9, 2015, 6:52pm UTC](https://forum.kirupa.com/t/kirupa-com-behind-the-code-stacks-and-heaps-page-1/633597/2 "2015-08-09T18:52:32Z")

</div>

Not sure where to begin with how many things are wrong with this post haha.
