import java.io.FileWriter;
import java.io.IOException;
public class writeAFile{
public static void main(String args[]){
try{
FileWriter writer=new FileWriter("C:\\arya.txt");
writer.write("hello");
writer.close();
}catch(IOException e){
System.out.println(e);
}
}
}
import java.io.IOException;
public class writeAFile{
public static void main(String args[]){
try{
FileWriter writer=new FileWriter("C:\\arya.txt");
writer.write("hello");
writer.close();
}catch(IOException e){
System.out.println(e);
}
}
}
إرسال تعليق