# Reading all text from a .txt file

**URL:** <https://forum.kirupa.com/t/reading-all-text-from-a-txt-file/298214>\
**Category:** flash\
**Created:** [October 15, 2009, 8:33am UTC](https://forum.kirupa.com/t/reading-all-text-from-a-txt-file/298214 "2009-10-15T08:33:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayman](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Ayman](https://forum.kirupa.com/u/Ayman)\
**Post date:** [October 15, 2009, 8:33am UTC](https://forum.kirupa.com/t/reading-all-text-from-a-txt-file/298214/1 "2009-10-15T08:33:37Z")

</div>

Hi guys,

Quick question. Ofcourse I know that you can read flash variables from a text file, which is formatted like: @var1=firstVariable@var2=secondVariable and so on.

But is there a way to read normal text out of a textfile? Is it through the bytearray class?

Thanks!
