String sLine, sCountryCode, sPlaceCode, sPlaceName, sPort, sRail, sRoad, sAirport, sPostal, sStatus, sIata, sLat, sLong;
FileWriter oLC = new FileWriter(sOutFile);
FileWriter oCC = new FileWriter(sCountries);
FileReader oFR = new FileReader(sInFile);
LineNumberReader oLR = new LineNumberReader(oFR);
while ( null!= (sLine = oLR.readLine()) ) {
sCountryCode = sLine.substring(3,5).toLowerCase();
sPlaceCode = sLine.substring(6,9).toLowerCase();
sPlaceName = sLine.substring(10,46).trim().replace((char)39,'ยด');
if (sPlaceName.charAt(0)!='.') {
sPort = (sLine.charAt(86)=='1' ? "1" : "0");