Re: database theory
- Posted by Irv Mullins <irv at ELLIJAY.COM> Nov 20, 1998
- 619 views
I should have added a couple of things to the previous message: Euphoria sequences, when stored on disk, are horribly wasteful of space. It is *far* better to do your storage in plain old fixed-length ascii text format. How? Using prinf() of course. In one statement, you get: 1.Fixed length fields 2.Ascii conversion 3.End of record marker (C/R) This is also nice because you can use any old text editor to edit or view your data files. The problem is when reading data back in, you must do your own parsing. Using fixed length fields, like so: Irv Mullins irv at ellijay.com Alan Tu ATU5713 at COMPUSERVE.COM ^ ^ 1 13 You see that [NAME] is always input[1..12], address is [13..25] and so on. This works pretty easily. Irv