Forum Navigation
Replacing Phobos' BufferedFile
Posted: 02/29/08 17:31:40I'm porting some code from phobos, and have two use cases for BufferedFile? that I need a Tango way of doing. I originally expected to find classes that implement this in Tango, but I'm not sure anymore. Do I need to combine a FileConduit? and a BufferedStream? or something like that?
How would I do this: 1) Output some text to a file. Don't need formatting or anything, but would like to have buffering.
2) Read lines from a text file. With buffering.
I know how to use FileConduit?, TextFileInput?, LineIterator?, etc. I just need a straight forward way to add buffering. And I think my brain might be to small to fit the Tango IO package in it. So some hints would be welcome.