Jump to content

Recommended Posts

Posted

Hi all,

I looked at the help (that's how I found the instruction) but the text file will not open!

FileOpen("Results.txt", 2)

The script is located in the same folder than the txt file.

I also tried (with the script in a different folder)

FileOpen("C:\test\Results.txt", 2)

But it is not working

  • Developers
Posted (edited)

It will open fine to be able to read the records with FileRead(), but you probably want to run the application that normally opens the file.

Look at ShellExecute()

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted (edited)

It will open fine to be able to read the records with FileRead(), but you probably want to run the application that normally opens the file.

Look at ShellExecute()

Jos

Thanks, I will give it a try.

Edit: it works!

Is there also a way to force a .txt file to be opened with notepad in case the user has another text editor?

Edited by Akshay07
Posted

It will open fine to be able to read the records with FileRead(), but you probably want to run the application that normally opens the file.

Look at ShellExecute()

Jos

How did you figure that out? ;)

That's brilliant.

♡♡♡

.

eMyvnE

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
×
×
  • Create New...