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
 Import an ASCII File
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Malab

Germany
19 Posts

Posted - 08/25/2005 :  10:12:37 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version 6.0:
Operating System: Win2000

I would like to Import an ASCII File by the commands:

window -n wks input;
getfile *.txt;
open -w %A;

But now the worksheet has the name of the ASCII file. Sometimes very strange (special characters will be cutted and so on)

How can I rename the worksheet ("with the unknown name") to my original name (Input [for Example])?


Thanks

Mike Buess

USA
3037 Posts

Posted - 08/25/2005 :  10:25:39 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The quick solution is to add this after the open command...

win -r %H input;

However, if you create the wks with win -t (and use a template) rather than win -n you can prevent the wks from being renamed in the first place by saving the proper ASCII options with the template.

Mike Buess
Origin WebRing Member
Go to Top of Page

Malab

Germany
19 Posts

Posted - 08/26/2005 :  02:52:20 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you!
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