filereadline not work please help

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
adrian_9832
Posts: 26
Joined: 23 Dec 2018, 00:40

filereadline not work please help

23 Jan 2020, 03:12

i have a text file like:
192.168.1.13
192.168.1.14
192.168.1.15
192.168.1.16

i use the example to filereadline , but not work

can someone tell me what problem with below example script



filename := "C:\Users\user.user-PC\Desktop\ip.txt"

Loop
{
FileReadLine, line, %filename% , %A_Index%
if ErrorLevel
break
MsgBox, 4, , Line #%A_Index% is "%line%". Continue?
IfMsgBox, No
return
}
MsgBox, The end of the file has been reached or there was a problem.
return
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: filereadline not work please help

23 Jan 2020, 04:16

dont use loop+filereadline
use fileread+loopparse(on newlines)
adrian_9832
Posts: 26
Joined: 23 Dec 2018, 00:40

Re: filereadline not work please help

23 Jan 2020, 04:39

https wyagd001.github.io /zh-cn/docs/commands/FileReadLine.htm Broken Link for safety

uh...........so it look like the document example have bug

thanks

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], peter_ahk and 328 guests