I'm sorry if this is something that I should know, but osg::ifstream doesn't 
seem to have any way of peeking at the next byte or reading/pushing back a 
byte. I am attempting to implement a platform agnostic readLine() method that 
can handle \r\n, \r, or \n. Is there a wrapper class I should be using here 
with the ifstream, or is there another strategy I should use?

Also, I should note that this is a binary stream, since the file type has a mix 
of binary and textual data. 

Thanks,
Thomas

------------------------
Vermont Sustainable Heating Initiative (http://www.sustainableheatingvt.org) || 
Village2Village Project (http://www.village2villageproject.org)

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=32317#32317





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to