title: Reading a text file into multiple arrays in Java
body: <p>I'm currently working on a program that reads in a preset text file and then manipulates the data in various ways. I've got the data manipulation to work with some dummy data but I still need to get the text file read in correctly.</p>
  
  <p>The test file looks like this for 120 lines:</p>
  
  <p>Aberdeen,Scotland,57,9,N,2,9,W,5:00,p.m. Adelaide,Australia,34,55,S,138,36,E,2:30,a.m. Algiers,Algeria,36,50,N,3,0,E,6:00,p.m.(etc etc)</p>
  
  <p>So each of these needs to be read into its own array, in order <code>String[] CityName</code>,<code>String[] Country</code>,<code>int[] LatDeg</code>,<code>int[] LatMin</code>,<code>String[] NorthSouth</code>,<code>int[] LongDeg</code>,<code>int LongMin</code>,<code>String[] EastWest</code>,<code>int[] Time</code>.<code>String[] AMPM</code></p>
  
  <p>So the problem is that while I'm reasonably comfortable with buffered readers, designing this particular function has proven difficult. In fact, I've been drawing a blank for the past few hours. It seems like it would need multiple loops and counters but I can't figure out the precisely how.</p>