C caillaud Member Licensed User Longtime User Mar 2, 2012 #1 Hi B4X: label1.text=File.ReadString(File.DirInternal,"cbnum") It happens the cbnum file does not exist (for exemple the first time the transaction is run) how to detect the the file cbnum does not exist in File.DirInternal directory and so doing that is necessary (creating it or something else) sincerely michel
Hi B4X: label1.text=File.ReadString(File.DirInternal,"cbnum") It happens the cbnum file does not exist (for exemple the first time the transaction is run) how to detect the the file cbnum does not exist in File.DirInternal directory and so doing that is necessary (creating it or something else) sincerely michel
NJDude Expert Licensed User Longtime User Mar 2, 2012 #2 Like this: B4X: If File.Exists(File.DirDefaultExternal, "MyFile.ext") = False Then <Create file, copy from Assets, etc> End If Upvote 0
Like this: B4X: If File.Exists(File.DirDefaultExternal, "MyFile.ext") = False Then <Create file, copy from Assets, etc> End If
C caillaud Member Licensed User Longtime User Mar 2, 2012 #3 hi thanks a lot it works fine sincerely michel Upvote 0