[Gambas-user] OPEN and File.Load: Not the same set.
phiber
phiber at ...618...
Fri Oct 8 14:19:06 CEST 2004
Try this little experiment:
OPEN "/tmp/risultato" FOR READ AS #FileCPU
INPUT #FileCPU, CPU
CLOSE #FileCPU
PRINT Len(CPU)
CPU = File.Load("/tmp/risultato")
PRINT Len(CPU)
As you'll se the length is different. That's because INPUT stores a line
without it's linefeed (\n) and file.load stores all the contents of the
file (even the linefeeds). If you still want to use file.load try:
CPU = replace(File.Load("/tmp/risultato"), "\n", "")
On Fri, 2004-10-08 at 11:30, Cryrulez wrote:
> 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?)
More information about the User
mailing list