V
vidhi
i have an applet application which runns by useing values avilable in a
text file, as per the situation it rung great.
but the problem occures when multiple instance of applet over a network
is running and try to access the text file at same instance, in this
situation only one applet can have access the file and rest are hang up
at line which uses the file, one the applet file which have file access
grant will close then next but only one at this time also get the
access to that file.
i thought i might be sharing vocation problem.
here is the code what i use to access.
BufferedReader br=new BufferedReader(new
InputStreamReader(getClass().getResourceAsStream("MyTextFile.txt")));
try
{
while((str=br.readLine())!= null)
{
strRange=br.readLine();
}
}catch(IOException io){}
text file, as per the situation it rung great.
but the problem occures when multiple instance of applet over a network
is running and try to access the text file at same instance, in this
situation only one applet can have access the file and rest are hang up
at line which uses the file, one the applet file which have file access
grant will close then next but only one at this time also get the
access to that file.
i thought i might be sharing vocation problem.
here is the code what i use to access.
BufferedReader br=new BufferedReader(new
InputStreamReader(getClass().getResourceAsStream("MyTextFile.txt")));
try
{
while((str=br.readLine())!= null)
{
strRange=br.readLine();
}
}catch(IOException io){}