PDA

View Full Version : Loading and Displaying a Text File


Desmond
09-26-2003, 03:56 PM
<HTML> <HEAD> <TITLE>AutoPlay Media Studio 5.0 Knowledge Base</TITLE> </HEAD> <BODY> <h3>Loading and Displaying a Text File</h3> <b>Document ID: IR10053</b> <hr> The information in this article applies to: <ul> <li>AutoPlay Media Studio 5.0 Standard Edition</li> <li>AutoPlay Media Studio 5.0 Professional Edition</li> </ul> <hr> <h3>SUMMARY</h3> <p>This article describes how to load and display a text file.</p> <h3>DISCUSSION</h3> <p>To display a large amount of text on your page use the TextFile.ReadToString action, and display the results in a paragraph object.<br> <br> To accomplish this in AutoPlay Media Studio 5.0:</p> <ol> <li>Choose Object > Paragraph from the menu.<br> <br> </li> <li>Insert the following code into any event in your application:<br> <br> <code>text = TextFile.ReadToString("AutoPlay\\Docs\\large_text.txt");<br> Paragraph.SetText("Paragraph1", text);</code><br> </li> </ol> <h3>MORE INFORMATION</h3> <p>For more information please see the following topics in the AutoPlay Media Studio 5.0 help file:</p> <ul> <li><b>Program Reference | Actions | TextFile | TextFile.ReadToString</b></li> </ul> <p>KEYWORDS: AutoPlay Media Studio 5.0, Open, Text, File, Paragraph </p> <hr> <FONT SIZE=1> Last reviewed: September 26, 2003<br> Copyright © 2003 <A HREF="http://www.indigorose.com" target="blank">Indigo Rose Corporation</a>. All rights reserved.<br> </FONT> </BODY> </HTML>