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
 Import an ASCII File

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
Malab Posted - 08/25/2005 : 10:12:37 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
Malab Posted - 08/26/2005 : 02:52:20 AM
Thank you!
Mike Buess Posted - 08/25/2005 : 10:25:39 AM
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

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