only can write until the 924th byte using RandomAccessFile
<p>Im having a problem when i try to fill up a randomaccessfile, in using a loop for it and it stops writing when it reaches de 924th byte, so when i try to fill up 2500 bytes with "-" for example, it only fills 924 byte. Here is the code that im using, hope someone can tell me what i am doing wrong</p>

<pre><code>public class Hashing {
    private RandomAccessFile espacio;

    public Hashing() throws FileNotFoundException, IOException{
        File amigos = new File("Texto");
        String r = "rws";
        espacio = new RandomAccessFile(amigos ,r);
        this.estableceEspacioLlenado();
    }

    public void estableceEspacioLlenado() throws IOException{
        int a = 0;

        while(a&lt;2500){
            if(a&gt;=241 &amp;&amp; a%241==0){
                espacio.writeBytes("\n"); 
                a++;
            }
            else{
                espacio.writeBytes("-");
                a++;
            }
        }
    }        
}
</code></pre>

<p>output file:</p>

<pre><code>-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
</code></pre>
