I ha ve a problem with the Filewrite action
I use one listbox in order to visualize the content of file.
The rows that i visualize in the listbox introduce some empty lines!
.FUNCTION TO WRITE FILE
DefineVar "[trovata]" "Integer" "" "Local" ""
DefineVar "[elementi]" "String" "" "Local" ""
.read the file
FileRead "[PubDir]bookmark.dat" "ALL" "[elementi]"
.search duplicated element in the file
SearchStr "[%lezione]" "[elementi]" "[trovata]"
If "[trovata]" ">" "0"
AlertBox "Attenzione" "Elemento già presente nei preferiti"
Else
.append the element
FileWrite "[PubDir]bookmark.dat" "Append" "[%lezione]"
AlertBox "Attenzione" "Lezione aggiunta ai preferiti"
EndIf
.Write the file in the variable
FileRead "[PubDir]bookmark.dat" "ALL" "[booklist]"
the variable [booklist] comes used from the listbox in order to visualize the rows