Izmirov.Yaminovich Member Licensed User Longtime User Jul 11, 2016 #1 Code: Sub SaveData(Items() As String) Dim su As StringUtils Dim rows As List = Array (Items) su.SaveCSV(File.DirRootExternal, "data.txt", ",", rows) End Sub Can anyone tell me why is my file not saving in a csv form? I can't find it in the external files.
Code: Sub SaveData(Items() As String) Dim su As StringUtils Dim rows As List = Array (Items) su.SaveCSV(File.DirRootExternal, "data.txt", ",", rows) End Sub Can anyone tell me why is my file not saving in a csv form? I can't find it in the external files.
Erel B4X founder Staff member Licensed User Longtime User Jul 11, 2016 #2 How are you searching for it? With a file manager? Upvote 0
Izmirov.Yaminovich Member Licensed User Longtime User Jul 11, 2016 #3 Yes, I was trying things out. I couldn't find it. Did I missed anything? If it is directed to root external it should be at the external right? I searched the internal as well. It's just not there. Upvote 0
Yes, I was trying things out. I couldn't find it. Did I missed anything? If it is directed to root external it should be at the external right? I searched the internal as well. It's just not there.
Erel B4X founder Staff member Licensed User Longtime User Jul 11, 2016 #4 You cannot search the internal folders. Are you using a file manager app or Windows explorer? If you are using Windows explorer then the file will only be visible after the file is scanned: https://www.b4x.com/android/forum/threads/force-media-scanner-on-deleted-file.25794/#post-214985 Upvote 0
You cannot search the internal folders. Are you using a file manager app or Windows explorer? If you are using Windows explorer then the file will only be visible after the file is scanned: https://www.b4x.com/android/forum/threads/force-media-scanner-on-deleted-file.25794/#post-214985
Izmirov.Yaminovich Member Licensed User Longtime User Jul 11, 2016 #5 I am using the file manager app. If the csv file doesn't show, how am I supposed to know it it is saved correctly? Upvote 0
I am using the file manager app. If the csv file doesn't show, how am I supposed to know it it is saved correctly?
Erel B4X founder Staff member Licensed User Longtime User Jul 11, 2016 #6 You should be able to see it with a file manager app. If no error was thrown then the file was saved successfully. You can use File.Exists to check whether the file exists. Upvote 0
You should be able to see it with a file manager app. If no error was thrown then the file was saved successfully. You can use File.Exists to check whether the file exists.
Izmirov.Yaminovich Member Licensed User Longtime User Jul 11, 2016 #7 you mean like this? Code: File.Exists(File.DirRootExternal, "data.txt") It doesn't show though. Just the txt file, not in CSV Upvote 0
you mean like this? Code: File.Exists(File.DirRootExternal, "data.txt") It doesn't show though. Just the txt file, not in CSV
klaus Expert Licensed User Longtime User Jul 11, 2016 #8 What do you mean with Just the txt file, not in CSV ? If you expect a csv extension you should set it ? "data.csv" instead of "data.txt" Upvote 0
What do you mean with Just the txt file, not in CSV ? If you expect a csv extension you should set it ? "data.csv" instead of "data.txt"
Izmirov.Yaminovich Member Licensed User Longtime User Jul 11, 2016 #9 Oh really? I thought it might have two separated files. Silly me. Thanks Upvote 0