[Gambas-user] OPEN and File.Load: Not the same set.
phiber
phiber at ...618...
Thu Oct 7 10:55:07 CEST 2004
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?
>
>
>
>
>
More information about the User
mailing list