getstreameol {Rstreams} | R Documentation |
Examines a stream to determine the end-of-line marker.
getstreameol(s)
s |
an already opened stream. |
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")