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 X-Google-Attributes: gid10f6aa,public X-Google-Thread: f891f,795a5ad3ebea3c59 X-Google-Attributes: gidf891f,public X-Google-Thread: 1014db,795a5ad3ebea3c59 X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,795a5ad3ebea3c59 X-Google-Attributes: gid103376,public X-Google-Thread: 1094ba,795a5ad3ebea3c59 X-Google-Attributes: gid1094ba,public X-Google-Thread: 109fba,795a5ad3ebea3c59 X-Google-Attributes: gid109fba,public X-Google-Thread: fc89c,795a5ad3ebea3c59 X-Google-Attributes: gidfc89c,public X-Google-Thread: f8c65,795a5ad3ebea3c59 X-Google-Attributes: gidf8c65,public X-Google-ArrivalTime: 1995-01-06 19:56:19 PST Path: nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!tribune.usask.ca!quartz.ucs.ualberta.ca!news.ucalgary.ca!cpsc.ucalgary.ca!zydyk From: zydyk@cpsc.ucalgary.ca (Mariusz Zydyk) 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 Followup-To: 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 Date: 7 Jan 1995 03:56:19 GMT Organization: University of Calgary CPSC Message-ID: <3el3d3$67v@linux.cpsc.ucalgary.ca> References: NNTP-Posting-Host: fsb.cpsc.ucalgary.ca X-Newsreader: TIN [version 1.2 PL2] Xref: nntp.gmd.de comp.os.msdos.programmer:38342 comp.unix.programmer:21548 comp.lang.ada:17857 comp.lang.c:74165 comp.lang.c++:85836 comp.lang.fortran:16852 comp.lang.misc:10311 comp.lang.modula2:5425 comp.lang.pascal:39345 comp.lang.smalltalk:15486 comp.lang.basic.visual:35170 comp.lang.basic.misc:3120 comp.lang.basic.visual.misc:2518 comp.lang.cobol:682 Date: 1995-01-07T03:56:19+00:00 List-Id: Stephen Cacclin (cacclin@vanbc.wimsey.com) 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. ------- Since you set the follow-ups to all those newsgroups, a folloup to your post will be automatically routed to them. Enough of that though... -------- The way you store anything to disk is up to you, th eprogrammer. You can usually write non-integer numbers to disk same way they are stored in memory to conserve space. You might expand them into readable form and save it with all the decimals which will take up 16 or so bytes. Booleans are stored any way you want. Write them as strings 'True' & 'False', numbers 0 & -1 or any two numbers, or since you can have only 2 states, compress 8 into one byte, '00000001' would be 7 False and 1 True. Of course it is easier to use tools provided with the compiler to store data, but even there you can have lots of ways of doing this. Most database programs will store the data in some peculiar fashion, and also encrypted [most likely that is]. To find out their formats look at some sites [don't know which ones though] for the file format info. --==[> zydyk@cpsc.ucalgary.ca <]==--