The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Accessing single line in textfile

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Belsinga Posted - 08/30/2010 : 03:05:22 AM
Origin Ver. and Service Release (Select Help-->About Origin): 8SR6
Operating System: Win XP

Hello,

I import text files into origin using LabTalk and it works perfectly. I only need to know how I can access a single line in a text file. My experiment puts a numeric value in the text file underneath the columns with data. How can I make LabTalk to get this value and store it into a variable?

greetings,
Boudewijn.
1   L A T E S T    R E P L I E S    (Newest First)
Penn Posted - 08/31/2010 : 02:25:31 AM
Hi Boudewijn,

Maybe you need to make a filter with extracting variable to import your files. To do that, you can use the Import Wizard. Please refer to the following tutorials: Importing Data, Import Filter, Import Wizard. About variable extraction, please refer to this page. About creating filter, this page can help.

After creating the filter for your importing requirement, you can then use the impFile X-Function to import your file with the filter. Then the X-Function impinfo can help you to get the variables that have been extracted. Also, you can use page.info to get the variables.

Penn

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000