Jump to content

how to save WHOLE txt file to txt file?

Recommended Posts

Im working on my Text Editor and i dont know how to save the WHOLE text written in the EDIT box.

heres my Sample code:

$Form1 = GUICreate("Simple Text v0.1", 477, 299, 199, 129)
$Edit1 = GUICtrlCreateEdit("", 8, 32, 465, 249, -1, $WS_EX_CLIENTEDGE)
$menu = GUIctrlcreatemenu("File")
$item1 = GUIctrlcreatemenuitem("Open",$menu)
$item = GUIctrlcreatemenuitem("Save As..",$menu)

While 1
       $msg = GUIgetmsg()
     Case $msg = $GUI_EVENT_CLOSE

Case $msg = $item
$save = FileSaveDialog("Save To..","C:\","Text Documents(*.txt)",16)

The FileWrite doesnt work, ive tried FileWriteline, but also doesnt work. Can anyone help me?

[size=20]My File Upload[/size]Register at my site and upload.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...