https://github.com/sandysanthosh/java-text-csv
Java Project Write on Text File and Download in JSP
https://github.com/sandysanthosh/java-text-csv
csv exce excel java text
Last synced: 17 days ago
JSON representation
Java Project Write on Text File and Download in JSP
- Host: GitHub
- URL: https://github.com/sandysanthosh/java-text-csv
- Owner: sandysanthosh
- Created: 2017-06-28T17:18:49.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-24T05:00:03.000Z (about 6 years ago)
- Last Synced: 2025-02-28T20:57:46.393Z (over 1 year ago)
- Topics: csv, exce, excel, java, text
- Language: Java
- Homepage: https://sandysanthosh.github.io/Java-TEXT-CSV/
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Write Java pojos to Text File:
PrintWriter pw = new PrintWriter("F:\\starwalt\\ava aspose jars\\text.txt"); //to write in text
PrintWriter pw = new PrintWriter("F:\\starwalt\\ava aspose jars\\text.csv"); // to write in csv
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();
### TO DO in FORMAT:
csvFile - word - PDF- word - PPT:
location
filename
csvcontent - stringbuilder
## To Download in HTML:
Click on the image to download it:
Follow us on Blog