How do I...?

Load and Display a Text File

To display a large amount of text on your page use the TextFile.ReadToString action, and display the results in a paragraph object.

To accomplish this in AutoPlay Media Studio:

  1. Choose Object > Paragraph from the menu.

  2. Insert the following code into any event in your application:

text = TextFile.ReadToString("AutoPlay\\Docs\\large_text.txt");
Paragraph.SetText("Paragraph1", text);