MathGroup Archive 2006

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

Search the Archive

ReadList[file,HeldExpression] ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67582] ReadList[file,HeldExpression] ?
  • From: "Mark" <mark.stankus at gmail.com>
  • Date: Sat, 1 Jul 2006 05:12:18 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Can someone tell me how to do the following?

Say I have a Mathematica file go.m with the following two lines:

a=2;
c = 3;

and I want a command ReadCommandsInFile such that
ReadCommandsInFile["go.m"] produces

{Hold[Set[a,2]],Hold[Set[c,3]]}

but I do not want to execute these commands. 

Mark


  • Prev by Date: Re: Mouse wheel scroll speed
  • Next by Date: Classifying variable scope...
  • Previous by thread: Re: Mouse wheel scroll speed
  • Next by thread: Re: ReadList[file,HeldExpression] ?