Hallo!
Ich habe eine Frage:#
Warum Funzt das:
$file = FileOpen("test.txt", 1)
[/autoit][autoit][/autoit][autoit]FileWrite($file, "Line1")
FileWrite($file, "Immernoch Line1" & @CRLF)
FileWrite($file, "Line2")
FileClose($file)
[/autoit]Aber das:
[autoit]#include <misc.au3>
#include <File.au3>
#include <GUIConstants.au3>
[/autoit][autoit][/autoit][autoit]#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("AForm1", 285, 51, 193, 115)
$Input1 = GUICtrlCreateInput("", 0, 0, 281, 21)
$Button1 = GUICtrlCreateButton("Senden", 0, 24, 283, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$Offen = FileOpen("Hallo.txt", 1)
fileWrite($Offen, "Hallo!")
FileClose($Offen)
EndSwitch
Wend
nicht ???
Bin ich zu Blöd ?
Vielen Dank im Vorraus =)
Edit1:
Bei mir passiert einfach nix ... Oo Txt datei bleibt leer
Ôo
Edit2:
Hmm nach pc neustart ging es ...
Soweit so gut!
Aber geht das nicht mit dateien die im Lokalen netzwerk liegen ?
(("\\LENNART\SharedDocs\Chat.txt)) zb ?