- Create S3.txt filein E: drive
- After creating file run this code
File file = new File("E:\\Check\\S3.txt");
System.out.println("Enter Content");
FileWriter out = new FileWriter(file);
BufferedWriter bw = new BufferedWriter(out);
BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
bw.write(br.readLine());
bw.close();
No comments:
Post a Comment