# Loading Different Lines of Text

**URL:** <https://forum.kirupa.com/t/loading-different-lines-of-text/213540>\
**Category:** flash\
**Created:** [January 20, 2007, 5:35pm UTC](https://forum.kirupa.com/t/loading-different-lines-of-text/213540 "2007-01-20T17:35:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iloveny](https://avatars.discourse-cdn.com/v4/letter/i/51bf81/32.png) [@iloveny](https://forum.kirupa.com/u/iloveny)\
**Post date:** [January 20, 2007, 5:35pm UTC](https://forum.kirupa.com/t/loading-different-lines-of-text/213540/1 "2007-01-20T17:35:53Z")

</div>

Hi folks!

I have a text files that has around 100 lines of sentences. Each sentences are in different lines. This is the sample of the text file:

This is the first line of text and bla bla…  
This is the second line of text and bla bla…  
Each sentence is in different lines.

Now, I would like to load each of these lines into each different variable. Like this:  
var line1 = “This is the first line of text and bla bla…”  
var line2 = “This is the second line of text and bla bla…”  
var line3 = “Each sentence is in different lines.”

How can I achieve this?

Many many thanks in advanced folks!!
