My code below is giving me a file not found err msg on the File.OpenOutput line. I thought if the file didn't exist it would be created?
B4X:
Dim mFilePath As String
If File.ExternalWritable = True Then
mFilePath = "File.DirRootExternal"
Else
mFilePath = "File.DirInternal"
End If
Dim tw As TextWriter
tw.Initialize(File.OpenOutput(mFilePath, pDisplay_dat_filename, False))
tw.WriteLine(pNightimeIntensity)
tw.WriteLine(pAutoCloseAfterSelection)
tw.Close