#122197 - testforechozero - Sat Mar 17, 2007 8:40 pm
Hi,
I'm sort of new to coding on the DS and using C++ in general. I've been successful in printing text and taking stylus movements, thats about it.
Anyway, now i'm experimenting with fetching stuff from servers. Not anything on the webbrowser scale, but enough so I can perhaps fetch a daily message/quote from a text file on my server?
My problem is: Right now, I'm storing the data like so:
char buffer[2048];
This is not holding the contents of the file. So my question is, what is the best datatype to hold fetched data in?
BTW, I'm using PAlib, so when I use GetHTTP, the buffer needs to be a 'char'. I'm wondering if theres a way to receive part of the file at once, store it in a string/something else, then fetch the rest of the file?
I'm sort of new to coding on the DS and using C++ in general. I've been successful in printing text and taking stylus movements, thats about it.
Anyway, now i'm experimenting with fetching stuff from servers. Not anything on the webbrowser scale, but enough so I can perhaps fetch a daily message/quote from a text file on my server?
My problem is: Right now, I'm storing the data like so:
char buffer[2048];
This is not holding the contents of the file. So my question is, what is the best datatype to hold fetched data in?
BTW, I'm using PAlib, so when I use GetHTTP, the buffer needs to be a 'char'. I'm wondering if theres a way to receive part of the file at once, store it in a string/something else, then fetch the rest of the file?