crisoft
asked on
applet ----> URL -------> txt file
How can I do to access from an applet to an URL using "URL input stream" and from this URL to a txt file which is in a specific server?
I also need to know a way to read a txt file and extract strings, which are separated by something, for example a ",".
thank you very much
cristian
I also need to know a way to read a txt file and extract strings, which are separated by something, for example a ",".
thank you very much
cristian
To access a text file , access ot in the same way as you would a html file.
just make sure that you keep the text file in the Documents directory of your server
then access it using the URL.
For example
HTTP://yourservername/Doc.txt.
To parse through a string , refer to jwilcox's comment.
just make sure that you keep the text file in the Documents directory of your server
then access it using the URL.
For example
HTTP://yourservername/Doc.txt.
To parse through a string , refer to jwilcox's comment.
ASKER
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
String FullOfColons = new String("My Mom;and I; went to the bank; and put in; a lot of money!); // Actually full of Semi-Colons!
StringTokenizer KillGrammar = new StringTokenizer(FullOfColo
String RealSentence = new String();
while( KillGrammar.hasMoreTokens(
{
RealSentence += KillGrammar.nextToken();
}
System.out.println(RealSen
StringTokenizer is in java.util.
Hope this gets you atleast started on your solution.