Totale Anfänger Frage!

  • Hallo!

    Ich habe eine Frage:#
    Warum Funzt das:

    [autoit]

    $file = FileOpen("test.txt", 1)

    [/autoit][autoit][/autoit][autoit]

    FileWrite($file, "Line1")
    FileWrite($file, "Immernoch Line1" & @CRLF)
    FileWrite($file, "Line2")

    [/autoit][autoit][/autoit][autoit]

    FileClose($file)

    [/autoit]

    Aber das:

    [autoit]

    #include <misc.au3>
    #include <File.au3>

    [/autoit][autoit][/autoit][autoit]

    #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 ###

    [/autoit][autoit][/autoit][autoit]

    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

    [/autoit]

    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 ... :D

    Soweit so gut!

    Aber geht das nicht mit dateien die im Lokalen netzwerk liegen ?

    (("\\LENNART\SharedDocs\Chat.txt)) zb ?

    Jaja, Moo does the Cow!

    2 Mal editiert, zuletzt von Lenny (6. November 2007 um 18:31)