>I updated a lot, but it just checks for files on the SERVER.
>How come? I want to check for a file on the client.

whre are you writing your code? in the server or the client?!
If you are on the server then it's only natural that your code only
checks the server.

On Wed, 2 Feb 2005 11:21:26 +0100, Frank Weima <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I tried the folowing:
>
> int FileExists(string fname) {
>     ifstream fs; // create an in file-stream object
>     fs.open(fname.c_str(), ios::in); // try opening the file we look for
>     // if the file doesnt exist, fs will be
>     //     NULL, therefore it doesnt exist
>
>         if (!fs) {
>         fs.close();
>         return 0; // the file does no exist
>
>         } else {
>
>         // now the file does exists, so return t
>         //     he appropriate value
>         fs.close();
>         return 1; // the file does exist
>     }
>
> }
>
> I updated a lot, but it just checks for files on the SERVER.
> How come? I want to check for a file on the client.
> Also I tried: 'execclient', this doesn't work.
>
> Anyone suggestions to this code?
>
> Thanks,
> Frank 'anxiro' weima.
>
>

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to