Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Procedural Programming > Basic Input & Output in Programs >
Basic Input & Output in Programs
In Mathematica's standard notebook interface, you are directly giving input and getting output every time you press Shift+Enter. Although much more rarely needed than in more primitive languages, Mathematica also allows you to get input and generate output as side effects in a computation.
Print print any expression, including graphics, as output
PrintTemporary print temporarily, cleaning up when a computation is complete
"string" (String ▪ Row  ▪ Column  ▪ ...
    
Input, InputString put up a dialog to request input of an expression or string
    
Pause  ▪ Beep  ▪ EmitSound
    
Import, Export import and export in hundreds of formats
OpenWrite  ▪ OpenRead  ▪ Write  ▪ Read  ▪ ReadList  ▪ ...
TUTORIALS
MORE ABOUT
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF