Yup, something like:
using namespace std;
fstream f("Myfile", ios::in);
string theFile="";
char buff[1024]
while(!f.eof())
{
f.get(buff, 1023);
theFile += buff;
Type: Posts; User: Vacuus
Yup, something like:
using namespace std;
fstream f("Myfile", ios::in);
string theFile="";
char buff[1024]
while(!f.eof())
{
f.get(buff, 1023);
theFile += buff;
What library are you using for Sockets, Berkley?
You may want to try this library. Should be possible, if not, I suppose fstream could just read the entire file into a string, and send it that way.
Ergh, Sorry... That Copy & Paste was from an older file saved on my Harddrive. Turns out I am using the syntax you suggested above, queerest thing is, I still get the error....
Hey all,
I've been writing a nice & simple scripting system, and so far have been doing pretty well, except for the multitude of complilation errors (just simple mistakes ;))..
My main issue is...