Editing IO package

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 63: Line 63:
The io package comes with different interfaces to read/write different file formats.
The io package comes with different interfaces to read/write different file formats.
# COM
# COM
## This ''(interface)'' is only available on MS Windows '''and''' with an MS Office installation.
## This ''(interface)'' is only available on MS Windows '''and''' with a MS Office installation.
# [POI, POI/OOXML, JXL, OXS, UNO, OTK, JOD]
# [POI POI/OOXML JXL OXS UNO OTK JOD]
## These are java-based interfaces. They are generally slower than Octave's native OCT interface; OTOH they offer more flexibility. Generally the OCT interface offers sufficient flexibility and speed.
## Say hello to the many java-based interfaces to read very slowly shitty formats
# OCT
# OCT
## This is the new impressive and fast ''(mostly written in Octave itself! + two C files to bypass bottlenecks)'' interface which presently supports .xlsx, .ods and .gnumeric files.
## This is the new impressive and fast ''(mostly written in Octave itself! + two C files to bypass bottlenecks)'' interface which only supports .xlsx, .ods and .gnumeric files
(Note that .ods is a complicated file format with many gotchas that doesn't lend itself for fast file I/O. So unfortunately the fastest .ods interface is the Java-based jOpenDocument (JOD) (luckily it is GPL). However if speed is not an issue or if you hate Java, the OCT interface still performs fast enough.)


So, if you want to read/write '''.xlsx''' files, you'll only need the io-package >=2.2.0.  
So, if you want to read/write '''.xlsx''' files, you'll only need the io-package >=2.2.0.  
Line 74: Line 73:
But if you have to read/write '''.xls''' files, you'll need either
But if you have to read/write '''.xls''' files, you'll need either
* MS Windows with MS Office backings - or
* MS Windows with MS Office backings - or
* Octave built with --enable-java, + a Java JRE or -JDK, and one or more of the Java interfaces (i.e., the class libs)!
* need Octave build with --enable-java, + Java, and one or more of the Java interfaces!
 
If you want to read/write .gnumeric files, the OCT interface is even the only option.
 
For some rarely used file formats you'll need LibreOffice + Octave built with Java enabled + a Java JRE or -JDK. But OK, once there you can enjoy formats then like Unified Office Format, Data Interchange Format, SYLK, OpenDocument Flat XML, the old OpenOffice.org .sxc format and some others you may have heard of ;-)




Please note that all contributions to Octave may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Octave:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Template used on this page: