Android Question <Solved> Creating a Directory

Gavin

Member
Licensed User
Longtime User
Thank you LucaMs and sorex for your help. As usual, the solution was easy. I hinted that I did not think I was actually creating the directory and I was not. The correct syntax for creating a directory is
B4X:
File.MakeDir(File.DirInternal, "BlankSudoku")
Then to read from or write to the directory, the correct syntax is
B4X:
File.WriteList(File.DirInternal & "/BlankSudoku", Fiall & ".txt", List1)
not
B4X:
File.WriteList(File.DirInternal , "/BlankSudoku", Fiall & ".txt", List1)
The important thing for beginers to note is when creating the directory, do not use a back slash, then to access the directory the back slash is required. Just goes to show.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…