# \[Flash8\]Help! reading textfile into variables

**URL:** <https://forum.kirupa.com/t/flash8-help-reading-textfile-into-variables/183574>\
**Category:** flash\
**Created:** [March 28, 2006, 1:59pm UTC](https://forum.kirupa.com/t/flash8-help-reading-textfile-into-variables/183574 "2006-03-28T13:59:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaxie](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jaxie](https://forum.kirupa.com/u/jaxie)\
**Post date:** [March 28, 2006, 1:59pm UTC](https://forum.kirupa.com/t/flash8-help-reading-textfile-into-variables/183574/1 "2006-03-28T13:59:42Z")

</div>

Is there a simple way to read a **arbitrary** text from a textfile into Flash?  
Or [COLOR=Black] **must it look like** [/COLOR] &avariable=blabla to read text from a textfile into Flash?

Maybe it’s possible to just read the whole text and store it in a String and then cut it up and put it in some array or something similiar?  
-------- EDIT ------  
[COLOR=Black]To simplify, is it possible to read a textfile without having “aVariabel=aText” in the beginning of the textfile?[/COLOR]

The data looks like follows:

[[COLOR=Green]31[/COLOR]:[[COLOR=Blue]0[/COLOR],[COLOR=Red]0[/COLOR],[COLOR=Magenta]1[/COLOR],0],[COLOR=DarkGreen]10047[/COLOR]:[[COLOR=Blue]0[/COLOR],[COLOR=Red]0[/COLOR],[COLOR=Magenta]2[/COLOR],0],[COLOR=DarkGreen]129752[/COLOR]:[[COLOR=Blue]623[/COLOR],[COLOR=Red]583[/COLOR],[COLOR=Magenta]225[/COLOR],0]]

(The first [COLOR=Black]number is a [COLOR=DarkGreen]timestamp [/COLOR]in milliseconds then there is [COLOR=Blue]x[/COLOR] and [COLOR=Red]y[/COLOR] values and a [COLOR=Magenta]idNumber[COLOR=Black])[/COLOR][/COLOR][/COLOR]
