Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / reading and writing Memblocks to files...

Author
Message
Duffer
23
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 20th Jul 2003 03:17
can you write three very different (size/purpose) Memblocks to a file and then later just read them back (Read Memblock 1,1, Read Memblock 1,2, Read Memblock 1,3) without having to worry about the start position of Memblocks 2 and 3???
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 20th Jul 2003 03:26
depends what exactly you mean... the files and memblocks are pretty seperate.

the_winch
23
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 20th Jul 2003 04:53
You mean write 3 different memblocks into one file then read the 3 memblocks back?
the_winch
23
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 20th Jul 2003 05:16 Edited at: 20th Jul 2003 05:18
Just tested it and you don't need to worry about the position in the file of the memblocks. see source button.

Never used memblocks before, it's actually really easy.

You don't get the extra smilies when you edit a message
Duffer
23
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 20th Jul 2003 11:52
@ The Winch,

Thanks.

That's good to know. I'm wragged off with waiting for the 3d object .dbo file (and others) and I'm writing my own file formats...

"See source button" - what d'ya mean?
Duffer
23
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 20th Jul 2003 22:56
@ The Winch,

>?
the_winch
23
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 20th Jul 2003 23:11
This button

Under my 2nd post.
Click it. It's just the very simple source I used to test to see if it worked. No use to anybody but since I typed it out I thought I might as well post it.
Duffer
23
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 23rd Jul 2003 01:49
oh well, no .dbo in Upgrade 5 so my file format will have to do me now... shame as I cant combine things into a cohesive runs on its own 3d object animation for each object but have to keep referring to arrays etc... .

C'est La Vie...

Login to post a reply

Server time is: 2026-07-21 05:56:19
Your offset time is: 2026-07-21 05:56:19