From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f6aa,795a5ad3ebea3c59,start X-Google-Attributes: gid10f6aa,public X-Google-Thread: f891f,795a5ad3ebea3c59,start X-Google-Attributes: gidf891f,public X-Google-Thread: fc89c,795a5ad3ebea3c59,start X-Google-Attributes: gidfc89c,public X-Google-Thread: 109fba,795a5ad3ebea3c59,start X-Google-Attributes: gid109fba,public X-Google-Thread: f8c65,795a5ad3ebea3c59,start X-Google-Attributes: gidf8c65,public X-Google-Thread: 1014db,795a5ad3ebea3c59,start X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,795a5ad3ebea3c59,start X-Google-Attributes: gid103376,public X-Google-Thread: 1094ba,795a5ad3ebea3c59,start X-Google-Attributes: gid1094ba,public X-Google-ArrivalTime: 1995-01-06 04:09:13 PST Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!gw1.att.com!fnnews.fnal.gov!usenet.eel.ufl.edu!news.mathworks.com!hookup!swrinde!cs.utexas.edu!news.tamu.edu!s0h7390 From: s0h7390@cs.tamu.edu (Salman Halim) Newsgroups: comp.os.msdos.programmer,comp.unix.programmer,comp.lang.ada,comp.lang.c,comp.lang.c++,comp.lang.fortran,comp.lang.misc,comp.lang.modula2,comp.lang.pascal,comp.lang.smalltalk,comp.lang.basic.visual,comp.lang.basic.misc,comp.lang.basic.visual.misc,comp.lang.cobol Subject: Re: Data Format Brainstorm Date: 6 Jan 1995 12:09:13 GMT Organization: Texas A&M Computer Science Department, College Station, TX Message-ID: <3ejbt9$3jv@news.tamu.edu> References: NNTP-Posting-Host: sparc87.cs.tamu.edu Xref: nntp.gmd.de comp.os.msdos.programmer:38258 comp.unix.programmer:21492 comp.lang.ada:17808 comp.lang.c:73918 comp.lang.c++:85383 comp.lang.fortran:16789 comp.lang.misc:10283 comp.lang.modula2:5414 comp.lang.pascal:39116 comp.lang.smalltalk:15377 comp.lang.basic.visual:34833 comp.lang.basic.misc:3091 comp.lang.basic.visual.misc:2380 comp.lang.cobol:608 Date: 1995-01-06T12:09:13+00:00 List-Id: In article , Stephen Cacclin wrote: >Hello all, > >I am looking for some helpful input from the various comp.* communities. > >Basically I want to know how various databases, languages, protocols etc. >store different data types. In other words, how are signed/unsigned integers, >floating point numbers, date types, booleans etc. written to disk? > >Any database, language, machine type, protocol or other method is welcome! >Please feel free to share your most obscure references... > >*** Please respond with email since I am polling a number of groups. *blind ignorance to this* > >If I receive enough input, I will post a complete overview. >Thanks in advance. > >Stephen Cacclin hmm.. i don't really know how databases do their stuff, but i can't think of an example where i was able to issue a command to pascal which was the equivalent of: store this array of boolean to disk in file bool.dat. how it's stored is up to the programmer. some store it as text file (simple ascii on pc), others perform compression for large data, especially numeric or string. the SOURCE file on most pc compilers is stored simply as an ascii file (which means you could edit it just about any bloody where you so choose and then compile it using the language compiler). what DOES differ on occasion is how data types are stored in MEMORY (eg. integers take two bytes, longints take four, a byte obviously takes one etc. etc.) -- fun fun fun. . . hope i've completely babbled on uselessly and made no sense at all, salman.