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 / dbReadString Problems with GDK

Author
Message
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 21st Aug 2006 16:11
I am trying to read a text file and getting all sorts of problems reading it. It dont seem to put anything in the string.

Here is my CODE


and here is the text

If you look at the output you will see that i am getting a wrong value for the temp value it is returning plantmap.txt when it should be returning Australia. I dont even know where its getting its value from and everything else is not read. It is a really small file so it wont take long to check

fubar

Attachments

Login to view attachments
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 21st Aug 2006 16:12
The output is a jpeg file selected by the view button above incase i was unclear

fubar
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 21st Aug 2006 16:37
Try using fgets etc etc, instead of the dbReadString - just incase its the functions thats problem.

Come to the last Unofficial DBPro Convention (http://convention.logicstudios.net/)
Supplying "NO" since 1974...
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 21st Aug 2006 17:03
The function works here is it working with fgets


fubar
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 21st Aug 2006 17:21 Edited at: 21st Aug 2006 17:24
Is the file actually being found ?

Come to the last Unofficial DBPro Convention (http://convention.logicstudios.net/)
Supplying "NO" since 1974...
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 24th Aug 2006 02:28
I tried setting an absolute path and it still got the same problems

fubar

Login to post a reply

Server time is: 2024-11-19 07:18:56
Your offset time is: 2024-11-19 07:18:56