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 / Saving .dat files

Author
Message
Teamwith1
14
Years of Service
User Offline
Joined: 21st Mar 2012
Location:
Posted: 11th Jun 2012 20:21
When you have a program that makes a .dat file it is encrypted right?
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 12th Jun 2012 08:21
No. it's written in byte code. this is why it looks encrypted.

TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 12th Jun 2012 09:37 Edited at: 12th Jun 2012 09:38
When you write a file to your computer, you are the one that determines what goes into it. The file isn't encrypted when you save it, but that doesn't mean that what you write to it can't be encrypted. Try running this code:



Then open up the file "testing.dat". You'll see a mess of weird characters. The data is still there though, and you can read it in again with this:



Those aren't the only commands you can use, here's a list of the type of data you can write to a file:



TheComet

Login to post a reply

Server time is: 2026-07-07 15:11:30
Your offset time is: 2026-07-07 15:11:30