reading a text file using forcase
Posted: June 21st, 2021, 12:59 pm
My application calls an apk which writes a .dat file.
After that, if successful, it reads this .dat file with a forcase block, and it is unable to read anything.
If I read the same file with a fileread it works fine.
If I close my application and open it again, without calling the external apk (the .dat file is already there), it works fine.
I´ve tried several combinations of setfile, close, open, copy the filed to another file, etc, but nothing works but having to close the app and opening it again.
What am I doing wrong?
Best
Ari
After that, if successful, it reads this .dat file with a forcase block, and it is unable to read anything.
If I read the same file with a fileread it works fine.
If I close my application and open it again, without calling the external apk (the .dat file is already there), it works fine.
I´ve tried several combinations of setfile, close, open, copy the filed to another file, etc, but nothing works but having to close the app and opening it again.
What am I doing wrong?
Best
Ari