Re: [R] End of File for binary files

2010-01-23 Thread rn00b
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 th

[R] End of File for binary files

2010-01-23 Thread rn00b
Hello, I'm new to R and I'm writing a function to read binary tables (the binary version of read.table essentially). I'm having trouble figuring out how to determine when I reach end-of-file. Can anybody please help? thanks! -- View this message in context: http://n4.nabble.com/End-of-File-for