editing text file on local server

hi,

i am trying to read and write a text file from a local server computer from multiple iPads.

i am able to read the text file easily using

 www = WWW (path);

    // Wait for download to complete
    yield www;
    
    downloadedString = www.text;
    guiText.text = downloadedString;

but i am unable to write to the text file,
I’ve tried using

 // Create a Web Form
    var form = new WWWForm();
    form.AddField("frameCount", Time.frameCount.ToString());

    // Upload to a cgi script
    var w = WWW(path, form);
    yield w;
    if (w.error != null)
        print(w.error);
    else
        print("Finished Uploading");

I’ve also tried to use StreamWriter, but its keeps adding the Application.dataPath automatically to the path and can not find the folder.

any input on what I’m doing wrong?
thanks

Hi Pat,

What does the script on the server side look like? If you’re not getting any errors out of WWW when you try to write, then it’s probably something wrong on the server side.

Cheers,
Cahman