@Alien:
Suggest to modify lines that read from select.txt:
OLD: $Array = StringSplit(StringStripCR(FileRead($g_GConfDir&'\Select.txt')), @LF)
NEW: $Array = StringSplit(
StringRegExpReplace(StringStripCR(FileRead($g_GConfDir&'\Select.txt'))
, '\x0a((|\s{1,})\x0a){1,}', @LF), @LF)
This will replace linefeeds followed by a repetitive group of either nothing or several spaces/tabs)and linefeeds with a single linefeed.
In short: Will remove empty or lines containing only spaces/tabs from the array.
My hits are these:
BiG World Setup.au3:124: $Array = StringSplit(StringStripCR(FileRead($g_GConfDir&'\Select.txt')), @LF)
BiG World Setup.au3:185: Local $Array=StringSplit(StringStripCR(FileRead($g_GConfDir&'\Select.txt')), @LF)
Includes\09_Install.au3:269: $Array = StringSplit(StringStripCR(FileRead($g_GConfDir&'\Select.txt')), @LF)
Includes\16_Select-Tree.au3:863: $Array=StringSplit(StringStripCR(FileRead($g_GConfDir&'\Select.txt')), @LF); go through select.txt
Includes\16_Select-Tree.au3:901: $Array=StringSplit(StringStripCR(FileRead($g_GConfDir&'\Select.txt')), @LF)
Edited by dabus, 19 July 2014 - 11:43 AM.