Hi,

I am looking for a way to search a file for position of some expression,
from within R. My current code:

 sha1Pos = gregexpr("<sha1>", readChar(filename,
file.info(filename)$size))[[1]]

Works fine for small files, but text files I will be working with might get
up to Gb range, so I was trying to accomplish the same without loading the
whole file into R.

I realize this is not what R is designed to do, but maybe there is some way
I am missing.

Jarek Tuszynski

        [[alternative HTML version deleted]]

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to