Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1993
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1993

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

Search the Archive

Re: Indexing Output Files

  • To: mathgroup at yoda.physics.unc.edu
  • Subject: Re: Indexing Output Files
  • From: keiper
  • Date: Tue, 29 Jun 93 09:30:19 CDT

Jean Peccoud asks about indexing files:

	> It would be much easier to save each polynomial in a
	> separate file but I cannot find any simple
	> way to index output files.

Get[ ] and Put[ ] take the file name as a string.  String manipulation is
quite easy, for example:

In[25]:= Table[StringJoin["foo.", ToString[index]], {index, 5}]

Out[25]= {foo.1, foo.2, foo.3, foo.4, foo.5}

In[26]:= InputForm[%]

Out[26]//InputForm= {"foo.1", "foo.2", "foo.3", "foo.4", "foo.5"}
 
Jerry B. Keiper
keiper at wri.com






  • Prev by Date: Teaching numerical analysis
  • Next by Date: Dynamic programming
  • Previous by thread: Indexing Output Files
  • Next by thread: fitting models to data