9 ms·
Yeah. Iostreams doesn't work with strings and is not const correct. Also a horrible idea to use oop IMHO. Somehow POSIX is a lot simpler to use with read/write
by goalieca 11y ago
Yeah. Iostreams doesn't work with strings and is not const correct. Also a horrible idea to use oop IMHO. Somehow POSIX is a lot simpler to use with read/write and void
- gpderetta 11y agoiostream has its problems, but works perfectly fine with strings. Which part is not const correct? Also, iostream (buffered stream formatting), has nothing to do with posix read and write (unbuffered byte I/O). A closer match is C fprintf.