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.

Author
Message
A r e n a s
18
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 17th Sep 2010 20:20
Hi,

I am trying so hard to busy myself after a messy breakup and one of the things I've chosen to do is program a bit. I was wondering if it is possible for DB Pro to modify files binary information. If it was, then I could use the idea to encrypt information and decrypt it. I wont explain how I would do this, as it wouldn't be much of an encryption, but an answer to my question would be much appreciated

Also, does anyone else have any idea for useful programs which can be made? I am a reasonably experienced programmer and will most likely create any program idea which appeal to me

Thanks,

Arenas

Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 18th Sep 2010 00:31
Hi Arenas,

It is possible to use binary operators with DBP:
- <<, >> for bit shifting
- && (AND)
- || (OR)
- ~~ (XOR)
- .. (NOT, %1111 .. %1010 becomes %0101)
And it is also possible to read a file byte per byte.

But it is not possible to load a file from RAM memory (like images, or objects), but I think IanM's Matrix Utils will offer you a solution for this. It believe it has commands to construct media from raw data.

Cheers!
Sven B

Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 18th Sep 2010 04:26
I agree with Sven B. IanMs Matrix 1 Utilities Plugin is a must-have if you want better file manipulation than the default methods in Darkbasic Pro.

Get it and check out his datafile commands:
http://forum.thegamecreators.com/?m=forum_view&t=85209&b=18

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 19th Sep 2010 00:38
Actually, a file mapped into a memory bank may be a better choice than datafiles.

Utility plug-ins (26-JUL-2010)
I'm applying terms of use that require you to wear a red nose and honk a horn whenever you use the Internet
A r e n a s
18
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 19th Sep 2010 00:49
Thanks guys This'll really help with my project

Login to post a reply

Server time is: 2026-07-22 22:07:15
Your offset time is: 2026-07-22 22:07:15