this code produces the error quoted below it, I found one post referring to this error but it didn't give me anything to go on. . . .seems like a simple thing' . . . tried a number of things but it just won't go away. . .usual request for ideas and assistance, thanks.
CODE : Error description: Input string was not in a correct format.:
Dim outFILE As String = "OUTfile.txt" ' -> declared in Create'
If (!(File.Exists(File.DirAssets, outFILE)) Then '< < < < this is the offending line shown in the IDE / code highlight doesn't seem to work
''' writing
'' 'Private downWRT As TextWriter -> declared in Globals
downWRT.Initialize(File.OpenOutput(File.DirRootExternal, outFILE, False))
downWRT.Write(DateTime.Now)
downWRT.Close
else if
''' reading
''' Private upRD TextReader -> declared in Globals
upRD.Initialize(File.OpenInput(File.DirRootExternal, outFILE))
Private line As String
line = upRD.ReadLine
Do While line <> Null
line = upRD.ReadLine
Log(line)
Loop
upRD.Close
End If
B4A Version: 9.80
Java Version: 8
Parsing code. Error
Error parsing program.
Error description: Input string was not in a correct format.
Error occurred on line: 98 (Main)
If (!(File.Exists(File.DirAssets, CoronaVFILE)) Then
Last edited: