Data Interchange Format
Data Interchange Format (.dif) ist ein Textdatei-Format, das benutzt wird, um einzelne Arbeitsblätter zwischen Tabellenkalkulationsprogrammen (OpenOffice.org Calc, Excel, Gnumeric, StarCalc, Lotus 1-2-3, FileMaker, dBase, Framework, Multiplan, etc.) zu importieren/exportieren. Es ist auch unter dem Namen Navy DIF bekannt. Eine Einschränkung ist, dass das DIF-Format nicht mehrere Arbeitsblätter in einer Datei handhaben kann.
Geschichte
DIF wurde in den frühen 1980ern von Software Arts, Inc. entwickelt (den Entwicklern des VisiCalc-Programms). Die Speizifizerung war in vielen Versionen von VisiCalc enthalten und wurde auch im Byte Magazine veröffentlicht. Bob Frankston entwickelte das Format mit Hilfe anderer, u.a. Mitch Kapor, der es mit seinem VisiPlot-Programm funktionsfähig machte. (Kapor gründete später Lotus und entwickelte Lotus 1-2-3.) Die Speizifikation wure 1981 urheberrechtlich geschützt.
DIF war ein eingetragenes Warenzeichen von Software Arts Products Corporation (dem offiziellen Namen von Software Arts zu dieser Zeit).
Syntax
DIF stores everything in an ASCII text file to mitigate many cross-platform issues back in the days of its creation. However modern spreadsheet software, e.g. OpenOffice.org Calc and Gnumeric, offer more character encoding to export/import. The file is divided into 2 sections: header and data. Everything in DIF is represented by a 2- or 3-line chunk. Headers get a 3-line chunk; data, 2. Header chunks start with a text identifier that is all caps, only alphabetic characters, and less than 32 letters. The following line must be a pair of numbers, and the third line must be a quoted string. On the other hand, data chunks start with a number pair and the next line is a quoted string or a keyword.