title: Writing to a random access file
body: <p>I have a project in which I have to write to a random access file. </p>
  
  <p>I am reading a country with a some information including: id, name, year of independence, etc. That information is what I have to write to the file.</p>
  
  <p>My questions are:</p>
  
  <ul>
  <li><p>How can I measure the size of the record I'm writing to on the random access file? 
  I know how to do it via: <code>filewrite.int(variable)</code>. But the project requires me to somehow have a constant size of where I write each character.</p></li>
  <li><p>I know 2 bytes is one character, but how can I say "I want to write this line (where each line is a country with its information) so write the line from byte 1 to byte 15 and have a constant size"? </p></li>
  </ul>
  
  <p>Thanks!</p>