Jump to content

Script that creates a .txt file


Nigel
 Share

Recommended Posts

Hi Nigel.

In its simplest form you would use the functions

While 1

$textToWrite = InputBox ( "title", "Prompt" [, "Default" [, "password char" [, width, height [, left, top [, timeOut [, hwnd]]]]]] )

FileWriteLine ( filehandle or "filename", $textToWrite )

Wend

Something like

Global $file=@DesktopDir&"\File.txt"
Global $TextToWrite

While 1
    $TextToWrite = InputBox ( "Write Stuff", "What do you want me to write?" )
    FileWriteLine ($file,$TextToWrite)
WEnd

Cheers

NBJ

edit: bugger too slow!

Edited by NBJ
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...