• 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

Reading an XLS (Excel) file. Row by row.

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Howdy everyone,

I need to make a program that will read XLS files in this form: (rows seperated by a ';')
(first row)
Id student name;LockerNo;Combination;Teacher
(second row)
record1
(third row)
record2

and so on...

I need to be able to read a certain file to compare with an other (specifically to check for records that are in the first but not in the second).

Unfortunately I have absolutely no idea which libraries (if any exist) to use, could anyone suggest certain API to look through to get me started?

Any help will be greatly appreciated.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What you describe looks like a CSV file, not like an XLS file (except that in CSVs, *columns* are separated by semi-colons, not *rows*).

The http://faq.javaranch.com/java/AccessingFileFormats page has links to lots of libraries that can read both CSV and XLS.
 
reply
    Bookmark Topic Watch Topic
  • New Topic