[Gambas-user] OPEN and File.Load: Not the same set.
Cryrulez
sniper at ...593...
Fri Oct 8 11:30:44 CEST 2004
I don't undestand what do you tell me about linefeed. I'm a newbye
(A basic question: How I can reply without make a new post?)
>> Maybe it"s because file.load also puts the linefeed in CPU?
On Thu, 2004-10-07 at 10:22, Cryrulez wrote:
> 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/20041008/a70c12bf/attachment.html>
More information about the User
mailing list