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

MathGroup Archive 2007

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

Search the Archive

Re: including part of files ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg74549] Re: including part of files ?
  • From: Bill Rowe <readnewsciv at sbcglobal.net>
  • Date: Sun, 25 Mar 2007 01:30:06 -0500 (EST)

On 3/23/07 at 7:14 PM, bar at ap.krakow.pl wrote:

>Is it possible to include/insert  files as part of notebook or *.
>files?

Yes. The details of how to do this would depend on what behavior
you want.

One possibility would be you want the contents of other files to
be displayed in the notebook. If so, functions like Read,
ReadList and Import will do what you want.

Another possibility is you want some sequence of operations to
occur when the file is read but don't care if the contents are
displayed in the notebook. If this is the case, then simply
create a text file with valid Mathematica code and save the file
with a .m on the end of the filename. Then doing

<<filename

will load the file and execute all of the code in that file.
--
To reply via email subtract one hundred and four


  • Prev by Date: Re: including part of files ?
  • Next by Date: Re: Applying a list of functions to a single number
  • Previous by thread: Re: including part of files ?
  • Next by thread: Re: Inverse of arbitrary functions