forked from vivekrathi53/Group_Chat_Application
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfile send
More file actions
17 lines (16 loc) · 633 Bytes
/
file send
File metadata and controls
17 lines (16 loc) · 633 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package chattingappfaeature;
import java.util.*;
import java.lang.*;
import java.io.*;
public abstract class Chattingappfaeature extends OutputStream {
public static void main(String args[]){
try{
FileOutputStream fout=new FileOutputStream("E:\\english\\Preposition Rules-2.docx");
String s="Welcome to javaTpoint.";
byte b[]=s.getBytes();//converting string into byte array
fout.write(b);
fout.close();
System.out.println("success...");
}catch(Exception e){System.out.println(e);}
}
}