[Gambas-user] OPEN and File.Load: Not the same set.

Cryrulez sniper at ...593...
Thu Oct 7 10:22:21 CEST 2004


Exist a file /tmp/risultato that contain a string "Noip"
I write in gambas project

OPEN "/tmp/risultato" FOR READ AS #FileCPU 
INPUT #FileCPU, CPU 
CLOSE #FileCPU 

The CPU variable is set to "Noip"

Rob wrote a new idea to make tha same problem (more better and professional, GG ROB):

CPU = File.Load("/tmp/risultato")

The problem is that the first solution set CPU with Noip and the second the same set but with the Rob solution I can't use the CPU variable in conditional expressions. Example:

IF CPU="Noip" then
.....

or 

CASE SELECT CPU
CASE "Noip"
.....

With the first solution the If or Case work fine, with the ROB solution the If and the Case don't work. Why? 





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20041007/eea89463/attachment.html>


More information about the User mailing list