Hi I try to copy the file cmdb.db in a root of USB pendrive and copy this file to the internal storage path /storage/emulated/0
The file is created but not copyed fully into the destination path.... can anyone help me?... thanks a lot.
Copy USB to Internal:
Sub btnCopy_Click
Dim filetocopy As String = "cmdb.db" 'file to copi from USB root
Dim inpstr As InputStream=Storage.FindFile(Storage.Root,filetocopy)
Dim os As OutputStream= File.OpenOutput(File.DirRootExternal,filetocopy,True)
File.Copy2(inpstr,os)
End If
The file is created but not copyed fully into the destination path.... can anyone help me?... thanks a lot.