I have a text file that was created on the PC in notepad. It contains 100 lines of plain text.
I added this file using the files tab in the project.
The file gets placed on the device in the files/virtual_assets folder as expected.
When I try to read the file into a list using the textreader.readlist I get 11 items
I copied the file back to the PC and opened it with notepad and it is nothing like the original.
For example the content was a list of sentences n English
After the file is moved to the device it looks like the bit below
[`vÑ|AÐ)º}IÒ7Ù¦met1$yçkò©=¤
Any idea why this happened and/or what I need to do to include a text file that will be usable on the device.
Also I know that b4a uses LF as a terminator but am wondering if having files that have the CRLF in them would be an issue. Would I need to strip the CR from files that were created on the PC under notepad for example.
I added this file using the files tab in the project.
The file gets placed on the device in the files/virtual_assets folder as expected.
When I try to read the file into a list using the textreader.readlist I get 11 items
I copied the file back to the PC and opened it with notepad and it is nothing like the original.
For example the content was a list of sentences n English
After the file is moved to the device it looks like the bit below
[`vÑ|AÐ)º}IÒ7Ù¦met1$yçkò©=¤
Any idea why this happened and/or what I need to do to include a text file that will be usable on the device.
Also I know that b4a uses LF as a terminator but am wondering if having files that have the CRLF in them would be an issue. Would I need to strip the CR from files that were created on the PC under notepad for example.