import java.io.File;Resources:
import java.io.IOException;
الفئة العامة CreateFile
{
الفراغ العام الثابت الرئيسي (سلسلة [] args)
{
try {
ملف ملف = ملف جديد ("c: \\ nouveau_fichier.txt") ؛
if (file.createNewFile()){
System.out.println("File create!");
}else{
System.out.println("الملف موجود بالفعل.");
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
Please disable your ad blocker and refresh the window to use this website.