Skip to content
Back to formatted view

Raw Message

Message-ID: <1264304454320-1288525.post@n4.nabble.com>
Date: 2010-01-24T03:40:54Z
From: rn00b
Subject: End of File for binary files
In-Reply-To: <644e1f321001231859s6d7303e6td2fbd1b011530a@mail.gmail.com>

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.