title: How to create a bmp file from rgb datas stored in a txt file?
body: <p>I've to create a bmp image from two txt files.The first one is an mxn array:
  <br><br>* * * * * * * *<br>
  m n<br>
  c11 c21 .. cm1<br>
  ...<br>
  c1n c2n .. cmn<br>
  * * * * * * * *<br><br>
  * * * * * * * *<br>
  6 5<br>
  .7 .7 .6 1.0 1.2 .1<br>
  .9 .3 .7 1.1 .7 .2<br>
  1 1.1 1.2 1.3 1.7 .6<br>
  .5 .6 .5 .4 .9 .1101<br>
  2 .1 .1 .1 2.1 1.1<br>
  * * * * * * * *<br></p>
  
  <p>The second txt file is a color scale, like this
  <br><br>* * * * * * * *<br>
  min1 max1 r1 g1 b1<br>
  min2 max2 r2 g2 b2<br>
  ...<br>
  minx maxx rx gx bx<br>
  * * * * * * * *<br><br>
  * * * * * * * *<br>
  0 .5 255 128 64<br>
  .5 .75 128 255 32<br>
  .75 1.25 64 64 225<br>
  01.50 5 128 128 0<br>
  * * * * * * * *<br></p>
  
  <p>So I've to read from this two files. I've tried to create an array from the first txt file using StringTokenizer class but I'm lost at all. From the two files I've to create a bmp image.
  Someone can help me in some way?</p>