- Home /
Can you use StreamWriter to write a text file to a File Server
var sw = File.CreateText("http://(insert IP address here)" + "test" + ".txt");
I am using StreamWriter and imported System.IO. But it says it can't locate it.
What is the right way of doing it?
So swap out System.IO for System.WWW?
I am new to server side operations.
Check the Scripting API: WWW Here is one of many examples that should help you achieve what you want:
Cool! Got it ! I am using HFS for my file transfer server.
Anything important to watch out for?
Like I am trying to upload it.
var sw = File.CreateText (WWW("http://localhost/") + "text" + ".txt");
Your answer
Follow this Question
Related Questions
How does a TextAsset work? 1 Answer
How do I display the contents of a class in a Label 0 Answers
Is this possible to work as a temporary storage? 2 Answers
Text wobbles as Content changes 2 Answers
Variable won't appear on UI text (JS) 0 Answers