Making a List Of Directory in JAVA ( Multi Client Single Server Program )
<p>I am writing a java multi-client single server program . There are a unique folder for
each client . Every client will send the name of directory to server . Then server will send a concated file to each client . </p>

<p>Lets Suppose</p>

<p>The file for client 1 is :</p>

<pre><code>        a.txt
        b.jpg
        c.dat
        d.mov
</code></pre>

<p>The file for client 2 is :</p>

<pre><code>        a.txt
        e.jpg
        c.dat
        r.mov
</code></pre>

<p>the file for client 3 is :</p>

<pre><code>        a.txt
        b.jpg
        c.dat
        d.mov
</code></pre>

<p>Then Server will send a list to each client as following : </p>

<pre><code>        a.txt client1 client2 client3 
        b.jpg client1 client3
        c.dat client1 client2 client3
        d.mov client1 client3
        e.jpg client2
        c.dat client2
        r.mov client2
</code></pre>

<p>How can I achieve this ? Please tell me in a details . I have been tried to do it from last 2 days . But the situation tells me all of my efforts are in vain .  </p>
