Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Your question needs some more clarification</p> <p>Anyway this is what you should do to edit the file</p> <ol> <li><p><strong>Read the file</strong></p> <pre><code>File sdcard = Environment.getExternalStorageDirectory(); File file = new File(sdcard,"theFILE"); StringBuilder content = new StringBuilder(); try { BufferedReader br = new BufferedReader(new FileReader(file)); String line; while ((line = br.readLine()) != null) { content.append(line); content.append('\n'); } } catch (IOException e) { } </code></pre></li> <li><p><strong>Edit the content</strong></p> <pre><code>content.append("bla bla"); content.append("kaza maza"); </code></pre></li> <li><p><strong>Save the file</strong></p> <pre><code>FileOutputStream f = new FileOutputStream(file); f.write(content.toString().toCharArray()); </code></pre></li> </ol> <hr> <p>Remember to add to your manifest the permissions to write to the sdcard:</p> <pre><code>&lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt; </code></pre> <hr> <p><strong>Validation</strong></p> <p>Unfortunately this is the hardest part. <a href="http://poi.apache.org/" rel="nofollow">Apache POI</a> is a choice; however it is a large library that does not guarantee the right behavior.</p> <p>The perfect solution is to check the <a href="http://download.microsoft.com/download/2/4/8/24862317-78F0-4C4B-B355-C7B2C1D997DB/%5BMS-DOC%5D.pdf" rel="nofollow">MS-DOC format</a>. It is a really big requirement. For such a limited application, I guess you won't find anything if you search the web. Therefore, you will have to implement a reader that abides by this format.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload