Friday, February 28, 2014

android how to read large text file contents when dealing with?


posts by u011098381 edited 2013-10-28 17:01:46
Some solutions online, so I know that for a small text file read directly read line by line, or byte read like. But if the text is large, for example 1M txt file, how to deal with? Do they need to open up a thread to read the text? Or how can I limit the maximum length of my reading, and if it exceeds the length on Toast "the text is too long to display completely"?
Great God help hope, in this case Thank you!
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
1M text is also not much of it ......?
Reply:
You are to do something similar text reader do?
For relatively large text files can be segmented read ah
Define a cache read text into cache
Then whenever you need additional content when a new text to read a thread cache
Reply:
reference to the second floor CuGBabyBeaR reply:?
things you need to do is text reader like you
For relatively large text files can be segmented read ah
Define a cache read text into cache
Then whenever you need additional content when a new thread to read the text to the cache


Thank you, oh! I want to implement a file manager, you can open a text file directly, but the text is big, it stuck in there. The maximum length of a similar RE Manager can directly read the text on the limit over the length can not be fully displayed on the tips of it?
Reply:
Segmented read ah, set jump-bit
Reply:
references, 4th Floor DrSmart reply:
segmented read ah, set the jump-bit


Thank you, I'll read Soso how to achieve segmentation,

No comments:

Post a Comment