Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
eunakim@lg1
Posted - 02/11/2003 : 9:01:37 PM Hi everyone!! I'm not sure this matter is new to this board but I don't know how to search the topic so I'm making new question.
I have a lot of ASCII files from other calculation S/W and I want to process the data using Labtalk. The x coodination value is in its file name like file1.din, file2.din, ... file102.din so on. The number in its file name has the information of x value of the result nd the file has the y value in ASCII form. So I need to extract the number from it file name and put it to the wks.
I use 'getfile -m' and 'open -w %a' to open the files. The variable %a has the value like 'c:\data\........\file1.din' how can I extract the file number from %a or is there any other marter way to do the same thing?
Any comment or advise will be helpful to me. Thanks
Hun.
2 L A T E S T R E P L I E S (Newest First)
eunakim@lg1
Posted - 02/12/2003 : 9:44:50 PM Thanks a lot!!
^_________^
Hun.
Mike Buess
Posted - 02/12/2003 : 07:56:09 AM Hi,
It should require only two steps...
%A=%[%A,>"\file" ]; // this leaves %A=xvalue.din xvalue=%[%A,'.']; // strip the extension