Re: Problems reading files
- To: mathgroup at smc.vnet.net
- Subject: [mg15373] Re: [mg15337] Problems reading files
- From: Jurgen Tischer <jtischer at col2.telecom.com.co>
- Date: Sat, 9 Jan 1999 23:58:27 -0500
- Organization: Universidad del Valle
- References: <199901080915.EAA04029@smc.vnet.net.>
- Sender: owner-wri-mathgroup at wolfram.com
Sergio, 1) no idea; 2) try the following: tresDigitos[n_]:=Module[{n1=ToString[n]},While[StringLength[n1]<3,n1="0"<>n1];n1] "A6E24"<>tresDigitos[#]<>".txt"&/@ Range[10] Of course you can combine this with the read command. Feliz anho, Jurgen Sergio Terrazas wrote: > > Hello Mathgroupers! > I have two questions about reading files into Mathematica 3.0 : > > 1) When using ReadList["A6E24001.txt",Number,RecordLists->True] > sometimes the file gets read, !and sometimes not! and I get the > message > "File not found" What could be going on? > > 2) I need to read 200 such files, with names like A6E24001.txt, > A6E24002.txt, A6E24003.txt, ..., A6E24200.txt. > Is there a way to do it automatically? > > Thanks a lot for any help any of you can give me. Happy New Year! > Sergio Terrazas > Juarez, Mexico
- References:
- Problems reading files
- From: Sergio Terrazas <sterraza@campus.cdj.itesm.mx>
- Problems reading files