This repository has been archived by the owner on Sep 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
.txt file writing 1024 character limit #1
Comments
@JamesBarnesBCX Did you try it on React Native iOS/Android or UWP? |
I tried on Android. |
@JamesBarnesBCX Thanks for the report. Actually, we have just used this library on React Native iOS and UWP. We will investigate the issue later. |
Can confirm this. Here's some quick test code: var str = "";
for (var i=0;i<2048;i++) {
str += "A";
}
await FileSystem.writeToFile("testfile.txt", str, false);
console.log("writing string with length: "+str.length);
var txt = await FileSystem.readFile("testfile.txt");
console.log("read string with length: "+txt.length); Output on Android 5.0.2:
|
@bitfabrikken Please try this version: |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm trying to save my json to a file but no matter what I try I cant get it to write across multiple line with my stringified json being limited to a single line of 1024 character length.
Append being set to true doesn't write it to a new line even when I break my string into smaller 300 character chunks and write them separately.
Appending "\r\n" also doesn't fix anything as it just makes to printer display it differently but not how it is stored.
Help would be appreciated.
The text was updated successfully, but these errors were encountered: