MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

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


  • Prev by Date: controlling format of numbers in plot labels
  • Next by Date: Re: New Mathematica Link for Excel
  • Previous by thread: Problems reading files
  • Next by thread: Re: Problems reading files