Java - allow access to files during I/O
Is there any way to allow access to files while they are being used in Java?

    BufferedWriter bw = new BufferedWriter(new FileWriter(file));
    BufferedReader br = new BufferedReader(new FileReader(file));
    String data = "";
    String line;
    while((line = br.readLine()) != null)
    {
        data += line;
    }
    bw.write(data + msg);
    br.close();
    bw.close();

Otherwise, I need to do something like that each time I want to add a single line to a text file...

Thanks!
Java - allow access to files during I/O
===

Is there any way to allow access to files while they are being used in Java?

    BufferedWriter bw = new BufferedWriter(new FileWriter(file));
    BufferedReader br = new BufferedReader(new FileReader(file));
    String data = "";
    String line;
    while((line = br.readLine()) != null)
    {
        data += line;
    }
    bw.write(data + msg);
    br.close();
    bw.close();

Otherwise, I need to do something like that each time I want to add a single line to a text file...

Thanks!