I saved a single program parameter (the choosen COM-Port "dartport") in an .ini-file.
When i start the program again i wanted the COM-Port readed in automatically by B4J.
I did save the data this way, but no sense how to open it.
When i start the program again i wanted the COM-Port readed in automatically by B4J.
I did save the data this way, but no sense how to open it.
B4X:
Sub SetupSave_Action
Dim res As Int = fx.Msgbox2(MainForm, "Änderrungen speichern ?", "Speichern", _
"Ja", "Cancel", "Nein", fx.MSGBOX_WARNING)
If res = fx.DialogResponse.POSITIVE Then
Log("Speichere Änderungen...")
End If
' SPEICHERN
File.OpenOutput("C:\","Port.ini",True)
File.WriteString("C:\","Port.ini",dartport)
SETUPpane.Visible= False
End Sub