Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I have a DOS ascii text database file with the specification I give below. Each line is one record.
- Can you make me a PHP script that reads a file,speperates fields and prints them on screen?
- The current database format is:
- Field Start Length Notes
- Name 1 36
- Year 38 4 Year-2000 compliant :-)
- Publisher 43 36
- Memory 80 3 Either one of " 16", " 48", "128", "4/1", "US0",
- " +2", " +3" or "Pen"
- # Players 84 1
- Together 86 1 Only 'Y' if > 1 player, space otherwise
- Joysticks 88 5 Shrunk leftward, order is 'K12CR' for
- Kempston, Intf2#1, Intf2#2, Cursor and Redefineable.
- PC-Name 94 12 The '.'s are aligned (raw name padded)
- Type 107 7
- PathIndex 115 3 Index number of the appropriate `GameDir' entry
- FileSize 119 7 Is '+' if the size has more than 7 digits
- Orig screen 127 1 'Y' if checked, space otherwise
- Origin 129 1 ' ' = (unknown)
- 'O' = Original release
- 'R' = Re-release
- 'C' = Compilation release
- 'M' = Magazine conver-tape version
- 'T' = Type-in
- 'H' = Hacked/cracked version
- 'I' = Incomplete version
- 'B' = Buggered/corrupted version
- FloppyId 131 4 Marked floppy number, or 0 for harddisk etc.
- Emul override 136 2 -1 = none
- 0 = Z80
- 1 = JPP
- 2 = Warajevo
- 3 = X128
- 4 = WSpecEm
- 5 = ZX
- 6 = Spanish
- 7 = ZX-32
- 8 = R80
- 9 = Russian/Shalayev
- 10 = Russian/Yudin
- AYSound 139 1 'Y' if checked, space otherwise
- MultiLoad 141 1 'Y' if multi-load in both 48K and 128K mode
- '4' if multi-load only in 48K mode
- ' ' if not multi-load at all
- Language 143 3
- Score 147 3 0 = not set
- Author 151 100
- All fields are seperated with 1 space, each line is exactly 250 characters.
- Numerical fields are aligned right, plain text fields are aligned left.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement