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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.