DESEI-SELB
asked on
How to write to a file in Java?
Hello,
I want to write to the network and this is the path that I have:
http://s306a5e/wasipm/Synchronize changes with Nodes.doc
when I use it for a link in html it works. but when I want to write a new file to the directory in java it does not work.
I have tried something like these:
href="http://s306a5e/wasipm/Synchronize.doc
acronym = "CBSV";
1. String filename = "http://s306a5e/wasip/"+ acronym + "_ServerRequest.txt";
java.io.FileNotFoundExcept ion: http:\s306a5e\wasip\CBSV_ServerRequest.txt (The filename, directory name, or volume label syntax is incorrect.)
2. String filename = "http:////s306a5e/wasip/"+ acronym + "_ServerRequest.txt";
http:\s306a5e\wasip\CBSV_ServerRequest.txt (The filename, directory name, or volume label syntax is incorrect.)
Thanks very much for any advice,
I want to write to the network and this is the path that I have:
http://s306a5e/wasipm/Synchronize changes with Nodes.doc
when I use it for a link in html it works. but when I want to write a new file to the directory in java it does not work.
I have tried something like these:
href="http://s306a5e/wasipm/Synchronize.doc
acronym = "CBSV";
1. String filename = "http://s306a5e/wasip/"+ acronym + "_ServerRequest.txt";
java.io.FileNotFoundExcept
2. String filename = "http:////s306a5e/wasip/"+ acronym + "_ServerRequest.txt";
http:\s306a5e\wasip\CBSV_ServerRequest.txt (The filename, directory name, or volume label syntax is incorrect.)
Thanks very much for any advice,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.