Read_file:
emails := ""
Loop, Read, C:\Users\Administrator\Documents\text_text.txt
{
emails .= A_loopReadLineA_Space
}
EmailsArray := []
Loop, Parse, emails, %A_Space%
{
EmailsArray.Push(A_loopField)
}
For key, value in EmailsArray
{
MsgBox, 0, , %Value%
}
Return
What i want to do is use each Value (line) for output, and then delete the value (line) from the array.
The idea is to use lines once until there are no more, then re loop the above function to repopulate the array and start again.
The reason behind this is .. if I have to exit the script I don't want the script to start from the first value (line) when restarted as that would create duplicates of submissions.
![Smile :)](./images/smilies/icon_e_smile.gif)
Thanks