Write A FiLe

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);
}
}
}

Post a Comment

Previous Post Next Post