
Hi
I am playing with the GPSLogSerial App that David Fallen had coded.
I had added the NMEA Modul into the Program, to view the NMEA raw data.
This saves the NMEA data.
Code:
Sub btnLog_Click
FileOpen(File, LogFileName, cWrite, ,cASCII)
FileWrite(File, TextBox1.Text)
FileClose(File)
End Sub
Now I like to few the NMEA data that had been saved with the Editor. I am unable to access the saved data on Device with the Editor. Data is saved in the main App.
Using the Editor to open File:
Sub mnuOpen_Click
ErrorLabel(mnuOpenErr)
CheckSaveChanges
OpenDialog1.Filter = "CSV Files|*.csv|Text Files|*.txt|All Files|*.*"
If OpenDialog1.Show <> cCancel Then
FileOpen(c1,OpenDialog1.File,cRead)
TextBox1.Text = FileReadToEnd(c1)
FileClose(c1)
LastFile = OpenDialog1.File
SaveChanges = False
End If
Return
mnuOpenErr:
Msgbox("Error opening file.","",cMsgboxOK,cMsgboxHand)
End Sub
A mistake of mine somewhere I think…
But I am not getting access to the file, how do I access the file, can someone please help me on this…
Thank you very much.
Best regards.
William