A source of input or output: files and pipes are both examples of general Mathematica objects known as streams.
1
vote
1answer
80 views
3
votes
1answer
141 views
Write and Read to StreamPosition
One OutputStream and one InputStream are opened on the same file:
...
3
votes
0answers
58 views
Reading a specified line number from a text file [duplicate]
Possible Duplicate:
How to read data file quickly?
I have a huge text file (~500 MB). The file is too large to Import into Mathematica, although I can ...
3
votes
1answer
89 views
Directing output of PrintTemporary to an additional OutputStream
I want to log messages that I send to the screen, even temporary ones.
By setting $Output appropriately, it is possible to log ...
3
votes
3answers
104 views
How to output an expression to an external file in “plain text” format without breaking lines?
Given a pretty long expression, such as
...
2
votes
1answer
121 views
Efficiently importing XPM matrix data into Mathematica
The XPM file format is an image file format. Although it is primarily intended for icon pixmaps, it can also be used to store matrix data. For example, the GROMACS chemical simulation package uses ...
2
votes
1answer
111 views
How to write output to an external text file in addition to the standard output stream?
How to write output to an external text file in addition to the standard output stream, i.e. a notebook for a session with FE and stdout for command-line session?
8
votes
2answers
159 views
How to record the stream of data (PixelPosition) dynamically?
I need to trace the moving of an object and get the coordinates of such movement. The set of coordinates will be used for the subsequent evaluation and analysis.
I can easy get the current real-time ...
3
votes
1answer
402 views
Stream CSV files
Ram limitations make import impractical for large CSV files. Is it possible to Stream CSV correctly?
...
7
votes
1answer
156 views
How do I re-direct FilePrint's output?
I recently wanted to use FilePrint to print the contents somewhere else but in the notebook I was using. However, the obvious-seeming solution doesn't work at all:
...
2
votes
0answers
75 views
How do I direct output to a specific notebook or cell? [duplicate]
Possible Duplicate:
How to pipe a stream to another notebook?
Is there any way to create a stream so that all output to the stream (from Write or ...
10
votes
1answer
341 views
How to generate a real-time stream of data?
I'm experimenting with Inversion-of-Control (callback) programming patterns, and I would like a way to generate streams of data at specified real-time intervals. I came up with the illustrated way to ...
7
votes
3answers
320 views
Reading from a stream of strings and numbers delimited by commas
I am trying to read from a stream of strings and numbers delimited by commas similar to the way I have read from a stream of strings and numbers delimited by spaces.
Example delimited by spaces ...
10
votes
2answers
493 views
Creating a realtime MIDI Out
I have a live stream of notes and note velocities using SoundNote and SoundVolume. My problem is that I have no idea how to ...
4
votes
1answer
272 views
Why these (error) messages?
Testing this answer I used:
stream = OpenWrite["A:\\out.txt"];
Block[{$Messages = stream},
Mod[1, 2, 3, 4, 5]
]
and I was surprised to find that the contents ...
10
votes
2answers
167 views
How to Write into multiple files?
I want to put expressions into multiple files simultaneously, with the following code:
...
6
votes
1answer
258 views
How to pipe a stream to another notebook?
Can I pipe an OutputStream object created by OpenWrite (or similar) to a notebook instead of a file? I am aware that I can use ...
