# Cannot display whole .txt file with loadVars();

**URL:** <https://forum.kirupa.com/t/cannot-display-whole-txt-file-with-loadvars/105697>\
**Category:** Uncategorized\
**Created:** [March 29, 2004, 1:45am UTC](https://forum.kirupa.com/t/cannot-display-whole-txt-file-with-loadvars/105697 "2004-03-29T01:45:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claudiog8](https://avatars.discourse-cdn.com/v4/letter/c/aeb1de/32.png) [@Claudiog8](https://forum.kirupa.com/u/Claudiog8)\
**Post date:** [March 29, 2004, 1:45am UTC](https://forum.kirupa.com/t/cannot-display-whole-txt-file-with-loadvars/105697/1 "2004-03-29T01:45:31Z")

</div>

I still did not find a solution to the following problem:

I created several buttons and to each one I associated some Action script coding:

on (release){  
loadVarsText = new loadVars();  
loadVarsText.load(“redWine.txt”);  
loadVarsText.onLoad = function(success) {  
if (success) {  
scroller.html = true;  
scroller.htmlText = this.var1;  
} else {  
trace(“not loaded”);  
}  
};  
}  
Then I created a file that I of course called redWine.txt and I added some HTML formatting. The problem is that the dynamic text box only display 27 of the lines of the text file. The txt file is attached here.  
:q:
