MathGroup Archive 2011

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

Search the Archive

Preprocessing file input


Hi everyone,

is there some hook for preprocessing expressions when they are read from 
a file. I'm looking for an analogon to $Pre, which applies to each 
expression read from a file. E.g. I have file.m containing

expr1
expr2
expr3

and when I do

<<file.m

what I would like to happen is

$PreFile[expr1]
$PreFile[expr1]
$PreFile[expr1]

Is there something like $PreFile???

Thanks for any suggestion,
WW.




  • Prev by Date: Re: Pascal's triangle spacing is off. Need DigitCount?
  • Next by Date: Re: Print bug with -script? (quotes display)
  • Previous by thread: Re: need a quicker method for SquaresR func
  • Next by thread: Re: Preprocessing file input