| getstreameol {Rstreams} | R Documentation |
Examines a stream to determine the end-of-line marker.
getstreameol(stream, bufsize = 256)
stream |
an already opened stream. |
bufsize |
buffer size for use by readchar. |
Reads characters from the stream until it finds a CR, LF, or CR/LF
end of line marker. These are the defaults used in text files
on the Mac, Unix, and PCs respectively. Returns marker in a string, as
'\r', '\n', or '\r\n'.
A character variable holding the end-of-line marker.
dump("getstreameol","mydata")
s <- openstream("mydata")
getstreameol(s)
closestream(s)
unlink("mydata")