[R] End of File for binary files
rn00b
forzatogo at gmail.com
Sun Jan 24 04:40:54 CET 2010
I am using readBin to continuously read characters from the binary file. I'm
trying to figure out how many characters are in the file. What I would like
to do is something like
(while! EOF)
{
charRead <-.Internal(readBin(con,"character",1L,NA,TRUE,swap))
i++
}
I'm not clear on how to determine the EOF condition in this case.
--
View this message in context: http://n4.nabble.com/End-of-File-for-binary-files-tp1288509p1288525.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list