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.

Dark GDK / dbWriteWord ( )

Author
Message
SxyGuy
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location:
Posted: 13th Jan 2006 20:03
I used the dbWriteWord and dbWriteFloat function to write some integers or floats into a text file. When I open the text file in notepad, all I saw was a bunch of symbols...no integers or floats. But, when I use the dbReadWord or dbReadFloat function, I get integers and floats in my program. So, how come when I open the text file, all I see are symbols?
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 13th Jan 2006 21:41
The dbWriteWord and dbWriteFloat functions are outputting the numbers in the binary format recognised by the computer, not text.

Cheers,
Ancient Lady
Smithy
19
Years of Service
User Offline
Joined: 8th Dec 2004
Location: Switzerland
Posted: 14th Jan 2006 01:23 Edited at: 14th Jan 2006 01:23
(tip: familiarize yourself with the hex- and binary-system,
it can or even will turn out to be very useful)

//Awards: Best DM at NeverwinterConventionIII (NWCon3)
//Sys: Pentium IV 3200E/Prescott;800Mhz FSB;HT;WinXPPro;ATIR9700PRO;1024MB RAM(2x512MB"DualChanneled";VC++7.net;Delphi6;ADSL512;

Login to post a reply

Server time is: 2024-11-19 04:17:16
Your offset time is: 2024-11-19 04:17:16