Indigo Rose Software
  #1  
Old 09-26-2003
Desmond's Avatar
Desmond Desmond is offline
Indigo Rose Staff Member
 
Join Date: Jul 2003
Posts: 628
Grin Reading Specific Lines from a Text File

Reading Specific Lines from a Text File

Reading Specific Lines from a Text File

Document ID: IR10025
The information in this article applies to:
  • AutoPlay Media Studio 5.0 Professional Edition

SUMMARY

This article describes how to reboot the user's system.

DISCUSSION

To retrieve specific lines from a text file in AutoPlay Media Studio 5.0, use the ReadToTable action.

As an example, we will read the file C:\test.txt into a table variable, and output the lines 4 through 10 to a paragraph object:

Insert the following code into an event in your application:

beginning_line = 4;

end_line = 10;

tabText = TextFile.ReadToTable("c:\\test.txt");

strLinesOfText = ""; line = beginning_line;



while line < (end_line + 1) do

strLinesOfText = strLinesOfText .. "\r\n" .. "Line " .. line .. ": " .. tabText[line] .. "\r\n"; line = line + 1;

end



Paragraph.SetText("Paragraph1", strLinesOfText);


MORE INFORMATION

For more information please see the following topics in the AutoPlay Media Studio 5.0 help file:

  • Program Reference | Actions | TextFile | TextFile.ReadToTable

KEYWORDS: AutoPlay Media Studio 5.0, Actions, Text, File, Table, String, Read


Last reviewed: September 26, 2003
Copyright © 2003 Indigo Rose Corporation. All rights reserved.
__________________
Setup Factory 8.0 comes with over 250 actions so you can create smaller, faster and more intelligent software installers than ever before.

WebHelp Guides: AMS | MSIFACT | SUF | TU | VP
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On



All times are GMT -6. The time now is 12:43 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software