Christophe Verré wrote:Did you try something ? Can you read one file ?
[My Blog]
All roads lead to JavaRanch
Christophe Verré wrote:If you can read one, you can read three, can't you ? A basic algorithm could be :
1. Open output file
2. For each input file
2.1 Open input file
2.2 Until input data left
2.2.1 Read input file
2.2.2 Output data
2.3 Close input file
3. Close output file
Christophe Verré wrote:No matter how the algorithm looks like, if you can read one file, you can read three ! Show us the code you have so far.
[My Blog]
All roads lead to JavaRanch
Christophe Verré wrote:aaahh, you were talking about a JFileSelector... In your FileChooserDemo#actionPerformed, you could show the file selector three times, and retrieve the selected file each time, then process each file.
if (e.getSource() == openButton) {
1. Loop until three file selected
1.1 Show file selector
1.2 Store selected file (e.g. in an array)
2. Loop each file and process
Put a gun against his head, pulled my trigger, now he's dead, that tiny ad sure bled
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|