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.

Newcomers DBPro Corner / Reading numbers from .txt file

Author
Message
Kikkeli
20
Years of Service
User Offline
Joined: 11th Feb 2004
Location:
Posted: 14th Apr 2004 19:05
Please, can someone help me whit this easy thing? How to read number or numbers from text file? =)

My code is now something like this (This one is not working):




DBP43V3R
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 14th Apr 2004 19:21 Edited at: 14th Apr 2004 19:22
print "My age is:"; str$(myage#)
wait key

how are you syncing?


Home of the VB.NET Class Builder Utility - Demo and FULL versions now available!!
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 14th Apr 2004 20:07 Edited at: 14th Apr 2004 20:10
You need to use read string.


The READ/WRITE FLOAT commands use a binary format that isn't human readable.
5.0 looks like

when you write it to a file with WRITE FLOAT and then open the file with notepad.

you ain't the cops
Kikkeli
20
Years of Service
User Offline
Joined: 11th Feb 2004
Location:
Posted: 14th Apr 2004 20:26
It works now pretty well. Thank you

DBP43V3R

Login to post a reply

Server time is: 2024-11-26 12:25:48
Your offset time is: 2024-11-26 12:25:48