I think you got it Margret, however, there are a few of things to consider.
1- To be able to write to the external SDCard you have to add this line to the manifest:
AddPermission("android.permission.WRITE_EXTERNAL_STORAGE")
2- Devices without an external SDCard will return an empty list (e.g. Nexus 7), so, these lines should be added after the For...Next in Sub DevicePaths
If dPaths.Size = 0 Then
dPaths.Add("/mnt/sdcard, /mnt/sdcard")
End If
3- On ICS and up you CANNOT write to the external SDCard, I think Google changed the permissions, so, having something something like:
File.OpenOutput(SGW(ChkVal, 3), "test.txt", False)
Or
File.OpenOutput("mnt/sdcard/ext_sd", "test.txt", False)
Will show a "FILE NOT FOUND" error (Assuming you added the permissions in item 1, otherwise you'll get File Not found + Permission denied).
I have read about a workaround but it requires root access. Well, at least you solved part of the problem and we learned from it.