def getWeatherIn(City):

  #get the length of the city name to be able to search for it
  wordlength = len(City)

  # Name of the Web page as file
  BOMfile = "bomInternationalObs.htm"

  # Open the file and read it
  file = open(getMediaPath(BOMfile), "rt")
  fileList = file.readlines()
  file.close()

  print "Number of lines in file:", len(fileList)

  weatherList = []

  # Process the file list until we find the start string

  i = 0  # Counter in list

  while (fileList[i].find("----- start -----") < 0):
    i = i + 1

  # Process the file list until we find the end string

  while (fileList[i].find("----- end -----") < 0):
    weatherList.append(fileList[i])
    i = i + 1

  for obs in weatherList: #loop for all weather observations
    if (City == obs[:wordlength]): #search for the given city and print its weather data
      print "City:", obs[:11], obs[44:47], "degC ", obs[66:71]