Earlier I was able to write a file to the external sd card and transfer it to my computer using the usb connection. Now it won't do it. When I plugged in the usb cable earlier (when it was successful) it showed the "J" drive. Now it is the "K" drive but I didn't change anything. Here is a little of the code I am using:
Then later on in the routine is this:
It will not even create the file, much less its contents. Any ideas? I know it works because I saw it but now it doesn't. Thanks for any help or suggestions.
Jim
B4X:
Sub btnOK_click
If chklistdisplay.Checked =True Then
Msgbox("A file named 'List of points.txt' will be created on the sd card","msg")
Dim writer As TextWriter
writer.Initialize (File.OpenOutput (File.DirRootExternal ,"listofpoints.txt",True))
End If
Then later on in the routine is this:
B4X:
.
.
.
txtdisplay.Text =txtdisplay.Text & cline(0) & " " & cline(1) & " " & cline(2) & " " & cline(3) & CRLF
If chklistdisplay.Checked =True Then
writer.Write(txtdisplay.Text )
End If
It will not even create the file, much less its contents. Any ideas? I know it works because I saw it but now it doesn't. Thanks for any help or suggestions.
Jim