This makes no sense to me
I create a text file in the %TEMP_DIR% and I can execute it and it contains text, however if I read it, there is nothing there.
ExecuteFile>%TEMP_DIR%test.txt
ReadFile>%TEMP_DIR%test.txt,testtext
In the debugger it comes back as TESTTEXT=
Now if I take this same file, move it to C:\test.txt and read it the variable testtext is read
Any ideas?
Readfile in Temp_Dir
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
The same code works for me (with test.txt in my temp folder).
Maybe we need to see the rest of your code.
Or maybe something else is writing to test.txt in your temp folder, preventing the ReadFile from working.
What happens with a ReadLn - what is returned?
Maybe we need to see the rest of your code.
Or maybe something else is writing to test.txt in your temp folder, preventing the ReadFile from working.
What happens with a ReadLn - what is returned?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Or make the watchlist wider ....
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Watch list wider
Marcus,
You hit the nail on the head. It was there not blank. Before it was not finding the file (I fixed that) and then it showed as blank and I thought nothing was there which did not make sense.
So I moved the file and showed it in a message box, I did not try in a message box from the origional as I saw nothing in the watch list.
Thanks
You hit the nail on the head. It was there not blank. Before it was not finding the file (I fixed that) and then it showed as blank and I thought nothing was there which did not make sense.
So I moved the file and showed it in a message box, I did not try in a message box from the origional as I saw nothing in the watch list.
Thanks