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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Accessing single line in textfile
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Belsinga

Netherlands
28 Posts

Posted - 08/30/2010 :  03:05:22 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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.

Penn

China
644 Posts

Posted - 08/31/2010 :  02:25:31 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000