GLBasic forum

Other languages => GLBasic - de => Topic started by: D2O on 2009-Mar-14

Title: Openfile(0,"hallo.txt",-1)
Post by: D2O on 2009-Mar-14
Hi,
ist ja ne super sache mit dem anh?ngen an eine Datei,
aber wie benutze ich das?

Das unter beispiel verh?lt sich aber so als ob FALSE -1 w?re?
Normal m?sste das zweite Openfile.... das erste ja ?berschreiben, tut es aber nicht.
Es h?ngt das "Hallo Du" an !??
Bei -1 anstatt FALSE geht garnichts, der Debugger bleibt in der Zeile wo -1 steht stehen und weist
darauf hin das "keine Datei vorhanden ist"

W?re sch?n wenn einer mir hier ein lauff?iges Beispiel mit TRUE, FALSE und -1 zeigt.
Danke.

Code (glbasic) Select
OPENFILE(0,"hallo.txt",FALSE)

WRITELINE 0,"Hallo"

CLOSEFILE 0

OPENFILE(0,"hallo.txt",FALSE)

WRITELINE 0,"Hallo Du"

CLOSEFILE 0

Title: Re: Openfile(0,"hallo.txt",-1)
Post by: Moru on 2009-Mar-14
This is a bug and Gernot is working on it, dont' worry :-)
Title: Re: Openfile(0,"hallo.txt",-1)
Post by: D2O on 2009-Mar-14
Thanks for Info, Moru.
Title: Re: Openfile(0,"hallo.txt",-1)
Post by: Moru on 2009-Mar-17
While trying to write to a file normally I noticed the lines I write are appended to the end, did the append mode got confused with open as output?
Title: Re: Openfile(0,"hallo.txt",-1)
Post by: Kitty Hello on 2009-Mar-17
Something went wrong, yes.
I'l double check, though.
Next update is something big, be prepared! It will feature a great change.
Title: Re: Openfile(0,"hallo.txt",-1)
Post by: D2O on 2009-Mar-17
Ich bin wie immer gespannt :)