Friday, February 28, 2014
android how to read large text file contents when dealing with?
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:
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:
Thank you, I'll read Soso how to achieve segmentation,
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment