-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAsposetxt.java
More file actions
45 lines (29 loc) · 970 Bytes
/
Asposetxt.java
File metadata and controls
45 lines (29 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import java.io.PrintWriter;
import com.aspose.words.Document;
import com.aspose.words.SaveFormat;
import aspose.pdf.*;
public class tt {
public static void main(String[] args) throws Exception {
// TODO Auto-generated method stub
PrintWriter pw = new PrintWriter("F:\\starwalt\\ava aspose jars\\text.txt");
StringBuilder csvcontact = new StringBuilder();
csvcontact.append("so");
csvcontact.append("bookname");
csvcontact.append("category");
csvcontact.append("\r\n");
csvcontact.append("1");
csvcontact.append("bookname 1");
csvcontact.append("sandy");
csvcontact.append("\r\n");
csvcontact.append("2");
csvcontact.append("bookname 2");
csvcontact.append("sandy");
csvcontact.append("\r\n");
csvcontact.append("3");
csvcontact.append("bookname 3");
csvcontact.append("kumar");
csvcontact.append("\r\n");
pw.write(csvcontact.toString());
pw.close();
}
}