Code: Select all
array := []
fileRead, array[1], test.txt
Code: Select all
array := []
fileRead, array[1], test.txt
Code: Select all
array := []
fileRead, temp, test.txt
array[1]:=temp
temp:=""
https://www.autohotkey.com/docs/Variables.htm#Expressions wrote:Force an expression: An expression can be used in a parameter that does not directly support it (except OutputVar parameters) by preceding the expression with a percent sign and a space or tab. In [v1.1.21+], this prefix can be used in the InputVar parameters of all commands except the traditional IF commands (use If (expression) instead). For example:Code: Select all
FileAppend, % MyArray[i], My File.txt
Code: Select all
myList := StrSplit("File001,File002,NewFile,LastFile",",")
for i,k in myList {
fileRead, temp%i%, % k ".txt"
}
Loop, %i% {
x := A_Index
str .= temp%x% "`n-----------------------------`n"
}
MsgBox % RTrim(str, "`n")
Users browsing this forum: No registered users and 372 guests