Results 1 to 6 of 6
Thread: (Java)
Hybrid View
-
11th December 2010 16:24 #1Registered User
Join Date: Oct:2010
Location: Varna
Posts: 24
(Java)
:
FileWriter f;
try {
f = new FileWriter("proba.txt");
f.write(data);
f.close();
} catch (IOException ex) {
Logger.getLogger(Kontrolno2View.class.ge tName()).log(Level.SEVERE, null, ex);
}
data , . ?
-
11th December 2010 16:28 #2Registered User
Join Date: Oct:2003
Location:
Posts: 4,317
-
11th December 2010 16:34 #3
bufferedWriter , . bsb, , , -> f = new FileWriter("proba.txt", true); (boolean if true, then data will be written to the end of the file rather than the beginning. )
MSI X570-A PRO, AMD 5800X3D, Noctua NH-D15, Corsair Vengeance LPX 2x8GB-3600, ASUS RTX ROG 3080 Strix White OC, Samsung 980 Pro 1TB NVMe, Corsair RM750, FD Define R5, Dell 32" 4k G3223Q 144Hz + 3xSamsung G5 32" 144hz, SimLab P1-X, Simucube 2 Pro, HE Ultimate, SRB GT3 Wheel
-
11th December 2010 16:52 #4Registered User
Join Date: Oct:2010
Location: Varna
Posts: 24
"f = new FileWriter("proba.txt", true);" , ( ++ "\n" . , data data+
-
11th December 2010 17:06 #5
Java ( google).
data , String-a -> + "\n" .Code:import java.util.Date; import java.text.DateFormat; import java.text.SimpleDateFormat; private String getDateTime() { DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); Date date = new Date(); return dateFormat.format(date); }MSI X570-A PRO, AMD 5800X3D, Noctua NH-D15, Corsair Vengeance LPX 2x8GB-3600, ASUS RTX ROG 3080 Strix White OC, Samsung 980 Pro 1TB NVMe, Corsair RM750, FD Define R5, Dell 32" 4k G3223Q 144Hz + 3xSamsung G5 32" 144hz, SimLab P1-X, Simucube 2 Pro, HE Ultimate, SRB GT3 Wheel
-
11th December 2010 17:11 #6Registered User
Join Date: Oct:2010
Location: Varna
Posts: 24
"\n" ,




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in