Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!cs.utexas.edu!ut-emx!nather From: nather@ut-emx.UUCP (Ed Nather) Newsgroups: comp.lang.c Subject: Re: binary data files Summary: Hear, hear! Message-ID: <12546@ut-emx.UUCP> Date: 29 Apr 89 13:43:22 GMT References: <10946@bloom-beacon.MIT.EDU> Organization: The University of Texas at Austin, Austin, Texas Lines: 34 I have used both binary and ascii data files in different versions of the same basic data acquisition program -- binary back when digital data cassettes were new and floppy disks held a massive 160KB, and ascii when things loosened up a bit. Believe me, ascii is better: 1. I can use Unix (or Unix-like) text tools to scan data files and their corresponding headers; I used to have to write my own tools. 2. Normal, everyday human beings can read the files without having to use a special translation program. Printers can print them for scrutiny. 3. I can often whump up a pipeline to do some special processing job, based on Unix(-like) tools for most of it, and often only a single tool to do the special stuff as the data flow through. 4. Other computers understand ascii and can read the files without having to write special conversion routines. 5. I have written conversion routines that turn old, compact binary data files & headers into ascii, matching the current program's output. Going the other way would be unthinkable. Bad things: 1. Files take a bit longer to read in, since conversion from ascii is now necessary, but it's a small percentage of the total read time. 2. Files are larger. 3. There are no other bad things. -- Ed Nather Astronomy Dept, U of Texas @ Austin