G
Guest
Gast
Hallo Leute,
so erstelle ich einen FileOutputStream in meinem Programm:
Je nach Bedarf möchte ich mehere FileOutputStream(s) erzeugen...
Wie kann ich dies in Java umsetzen...
so gehts ja leider nicht
[/code]
so erstelle ich einen FileOutputStream in meinem Programm:
Code:
File f1 = new File("datei1.txt");
FileOutputStream out = new FileOutputStream(f1);
Je nach Bedarf möchte ich mehere FileOutputStream(s) erzeugen...
Wie kann ich dies in Java umsetzen...
so gehts ja leider nicht
Code:
/* for(int i = 1; i< 5; i++) {
File ("datei" + i) = new File("datei"+ i + ".txt");
...
}*/