reading data into a applet

i have no idea how to do this i want to read data into a

applet from a file be it a text file or whatever

i want to write a file this can be done with a application and ive seen some topics on it

my real problem is reading data from a text file into a applet i want to grab a bunch of number s probably integers and have my applet read them so it can use them and if i ever need to change the data i can do so

in the text file instead of codeing it all into the applet

any suggestions on how to do this or a exmple would be even better

thanks in advance lightwave

[625 byte] By [xlightwavex] at [2007-9-26 2:17:10]
# 1

And this file is on the server, right? Simple: construct a new URL that points to that file (URL url = new URL(getCodeBase(), "file.dat");) and read bytes from the stream given by url.openStream(). (You can wrap readers, dataInputStreams etc around that stream if the basic InputSream isn't good enough)

jsalonen at 2007-6-29 9:16:34 > top of Java-index,Archived Forums,New To Java Technology Archive...