Openfile(0,"hallo.txt",-1)

Previous topic - Next topic

D2O

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

I7 2600K; 8 GB RAM ; Win10 Pro x64 | NVidia GTX 750 TI 2048MB ; Realtec OnBoard Sound;
Lenovo ThinkPad T400: XP Pro
GLB Premium-immer Aktuell

Moru

This is a bug and Gernot is working on it, dont' worry :-)

D2O

Thanks for Info, Moru.
I7 2600K; 8 GB RAM ; Win10 Pro x64 | NVidia GTX 750 TI 2048MB ; Realtec OnBoard Sound;
Lenovo ThinkPad T400: XP Pro
GLB Premium-immer Aktuell

Moru

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?

Kitty Hello

Something went wrong, yes.
I'l double check, though.
Next update is something big, be prepared! It will feature a great change.

D2O

Ich bin wie immer gespannt :)
I7 2600K; 8 GB RAM ; Win10 Pro x64 | NVidia GTX 750 TI 2048MB ; Realtec OnBoard Sound;
Lenovo ThinkPad T400: XP Pro
GLB Premium-immer Aktuell