[R] End of File for binary files
jim holtman
jholtman at gmail.com
Sun Jan 24 03:59:31 CET 2010
If you are reading a 'binary' file, then the end of file is when you
read the last byte; the system will tell you. Exactly what are you
trying do to? When you do a read, you typically request the number of
bytes to read and then the system returns the number of bytes read.
But since you did not give an indication of what/how you are trying to
do this, it is hard to make an exact suggestion. Did you have some
experience that you think you did not get an end of file indication?
More information is required.
On Sat, Jan 23, 2010 at 9:40 PM, rn00b <forzatogo at gmail.com> wrote:
>
> 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-binary-files-tp1288509p1288509.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem that you are trying to solve?
More information about the R-help
mailing list