Code: Select all
FileSelectFile, SelectedFile, 3, , Open a file, Text Documents (*.txt; *.doc) if SelectedFile = MsgBox, The user didn't select anything. else MsgBox, The user selected the following:`n%SelectedFile%
1. if the format file is not "txt" = dont continue!
2. if the content of the txt file is contains space(s) = dont continue! (new lines its ok)
thanks in advance!