I have some confused with all of this.
I'd want to 'connect' the char data input with file.read() with the best way to work with it. What is ? stream, strstream, stringstream .... ?
And I dont want to do a copy, so is there a way to get the data to any place and work already with it?
I' d like to do something like this:
file.read(65536)
- file.data.get a float
- file.data.get a 10 float array
- file.data.get a 20 lenght string
- file.data.find 'b'
- file.data.find 'e'
- file.data.get a string from data from pos for 'b' to pos for 'e'
'data' would be the 'object' I'm searching...
In case of need to work with strings, must I to use cstring.h ? Can I avoid it ?
Yes, I have a great confusion about streams...
Now, I can able to read data into a char buffer, but I dont know how to get and put data in this buffer, do I need another kinf of object ? Which?
I need an object to let me put-get data of any kind, seek set a pointer into it, etc.
I'm looking for more examples, I find nothing (or I dont understand the theory)
Thanks