Closed kmccmk9 closed 10 years ago
AutoHotkey probably can't access the file (see below) so you would need to run AutoHotkey as Administrator - see the documentation here http://ahkscript.org/docs/FAQ.htm#vista - try to move the file to your Documents folder - most likely it will work correctly - TF tries to determine if it is a file or a variable (or text) you are passing on to the function - if it can't access the file it thinks it is text and therefore returns the "text" (e.g. the path)
Could be there is a typo in your path name as well - either way TF can't read the file - this gives the same result - it returns the path:
Lines:=TF_ReadLines("Q:\path\doesnt\exist\file123.txt")
MsgBox %Lines%
Hello, great tool and I see much potential for this. I am trying to get it to read lines from a file. But, everytime I run the following code, all I get in the popup box is C:\Users\kyelc\Desktop\ahkscripts\todolist.txt which isn't correct. I have tried hard coded paths like below, relative paths and setting bounds on the ReadLines. What else can I do?
Code: Lines:=TF_ReadLines("C:\Users\kyelc\Desktop\ahkscripts\todolist.txt") MsgBox %Lines%