Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Open Source Projects
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Other Open Source Projects
help to write system.out.println output to an excel row using poi
Moieen Khatri
Ranch Hand
Posts: 144
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I want to write the output generated my program into individual rows of excel sheet.Can someone please share the code if possible
public static void main(String[] args) { String startingPath = ""; if( args.length < 1){ startingPath = "D:\\eclipse"; }else{ startingPath = args[0]; } ArrayList<File> newList = GetFileList.retriveAllFiles(startingPath); for( File f: newList){ System.out.println( f.getPath() ); } }
I want to write the output generated by
System.out.println( f.getPath() );
to an excel row.So if there are 10 lines of output generated by sop then there will be 10 rows in the excel.
Thanks in advance!
Ulf Dittmer
Rancher
Posts: 43081
77
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The
http://poi.apache.org/spreadsheet/quick-guide.html
has relevant code samples, particularly the first three.
Been there. Done that. Went back for more. But this time, I took this tiny ad with me:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
RandomAccessFile Modify Help
how to put two different folders(which is in different location) into one zip entry
Thread java.lang.IllegalMonitorStateException: Iam new to threads
streaming excel files on ServletOutputStream
Java File rename from Excel columns CODE doesn't work with files with 10 characters in their name
More...