Received: by 10.68.232.42 with SMTP id tl10mr3381993pbc.7.1335377392129; Wed, 25 Apr 2012 11:09:52 -0700 (PDT) Path: r9ni97724pbh.0!nntp.google.com!news2.google.com!postnews.google.com!z3g2000vbk.googlegroups.com!not-for-mail From: Erini Lambrides Newsgroups: comp.lang.idl-pvwave Subject: Retrieving Specific Data From a .txt file - PVWAVE Date: Wed, 25 Apr 2012 11:09:51 -0700 (PDT) Organization: http://groups.google.com Lines: 29 Message-ID: <71623ba8-55a3-4a39-a9dc-af1c50cd2ab7@z3g2000vbk.googlegroups.com> NNTP-Posting-Host: 128.151.32.169 Mime-Version: 1.0 X-Trace: posting.google.com 1335377392 9802 127.0.0.1 (25 Apr 2012 18:09:52 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 25 Apr 2012 18:09:52 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z3g2000vbk.googlegroups.com; posting-host=128.151.32.169; posting-account=EXnJKAoAAACnFT-zwS3DS_fm2O1gyR1W User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1,gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Hello Folks, I haven't used pv-wave for very long, so bear with me if the answer to my questions seem obvious. In a procedure I am writing, I want to be able to extra certain data from a .txt file and store that data into specific variables that I have already in my procedure. The data within the .txt files are produced through pv-wave so it will always be the same formatting - so Step1: find the file ( I know how to do this) Step2: user inputs a number (in my case this is called the shot number) Step3: check if that number is there Step4:retrieve the data (i would only need the lines below that shot and above the next shot) Step5:split up the data into specific variables (I can manage that) The format of the .txt file looks something like this shot 12345 h12 54 69 72 h13 47 85 92 . . . shot 12346 Any ideas at all? Sorry if this is all sounds convoluted. Thanks for any help! -erini