It is currently Mon Oct 20, 2014 4:50 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Mar 23, 2011 10:43 pm 
Offline
 Profile

Joined: Sat Sep 04, 2010 5:28 pm
Posts: 92
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.


Attachments:
BBCOpenup.zip [8.04 KiB]
Downloaded 16 times
Top
 
PostPosted: Tue Dec 06, 2011 9:51 pm 
Offline
 Profile

Joined: Sat Aug 22, 2009 7:45 pm
Posts: 34
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.


Top
 
PostPosted: Tue Dec 06, 2011 10:17 pm 
Offline
 Profile

Joined: Sat Sep 04, 2010 5:28 pm
Posts: 92
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.


Top
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: