|
[Date Index]
[Thread Index]
[Author Index]
File Import
- To: mathgroup at smc.vnet.net
- Subject: [mg32530] File Import
- From: Yas <y.tesiram at pgrad.unimelb.edu.au>
- Date: Fri, 25 Jan 2002 02:58:05 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Dera Mathgroup,
I have a bunch of files with name pattern, abX_pattern1_pattern2.txt. I
would like to Import many of these files, operate on them and then save
the output to another file.
1. How do I go about writing something in Mathematica which will import
the files by recognising the patterns. In the above pattern1 is an
integer and pattern2 contains a numbers and the letter o (e.g pattern2 =
0o5 or 0o1) automatically. An example from my notebook is as follows,
w8 = Import["ttX_1000_0o5.txt", "Table"];
2. After this I operate on the data which produces an output of two
numbers l, and m. I want to write these output values to a file as
columns of l, m, pattern1, pattern2, with pattern 2 converted to a
number ( in the example above, 0o5 to 0.5 say), then move on to the next
file and so forth.
Any help will be appreciated.
Thanks
Yas
Prev by Date:
Break up very long expression for C implementation
Next by Date:
Re: Difference between Get[] and Copy-Past operation
Previous by thread:
Re: Break up very long expression for C implementation
Next by thread:
Re: File Import
|