| www.retrosoftware.co.uk http://www.retrosoftware.co.uk/forum/ |
|
| Simple Openup format parser http://www.retrosoftware.co.uk/forum/viewtopic.php?f=11&t=601 |
Page 1 of 1 |
| Author: | tautology [ Wed Mar 23, 2011 10:43 pm ] | ||
| Post subject: | Simple Openup format parser | ||
I regularly seem to have to parse files stored in openup format (e.g. created from the BBC BASIC OPENUP and OPENOUT commands) and I've had several random routines kicking around, which I used to copy and paste into various different bits of code. Finally I thought I'd issue them in a general C library (attached). I also included a simple program that will attempt to dump an openup file to stdout (source code and Windows executable); it's not too clever and may get confused if BPUT has been used too much. I'm sure these routines can be improved, but if you're feeling lazy, you can nick mine.
|
|||
| Author: | jgharston [ Tue Dec 06, 2011 9:51 pm ] |
| Post subject: | Re: Simple Openup format parser |
tautology wrote: I regularly seem to have to parse files stored in openup format (e.g. created from the BBC BASIC OPENUP and OPENOUT commands) What do you mean by OPENUP format? OPENIN/OUT/UP impose no structure on the files they open, they are just purely a sequential sequence of bytes. It's up to the program that uses the files to chose to impose a structure on them.Do you mean PRINT# format? VisualBasic and C functions available here to read and write them. |
|
| Author: | tautology [ Tue Dec 06, 2011 10:17 pm ] |
| Post subject: | Re: Simple Openup format parser |
I meant PRINT#; I just used OPENUP for simplicity. I've actually had the routines kicking around for a few years (at least since I wrote the initial version of ascape) so I just thought I'd publish them. |
|
| Page 1 of 1 | All times are UTC [ DST ] |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|