3
$\begingroup$

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 read it in Emacs.

Is there a way to tell Mathematica to Read in only line number 23681 (where lines are delimited by "\n" and "\r", in the typical way, I think)? For example, suppose that I have:

str = OpenRead["test.txt"];

For a text file, StreamPosition and SetStreamPosition seems to refer to the character number, not the line number. Is there any way to change this? Thank you for your time.

$\endgroup$

Browse other questions tagged or ask your own question.