In this presentation you can find a list of cities of Sri Lankan in an interactive app. below code demostrates gathering and filtering of data..
Original data file can be found at http://download.maxmind.com/download/worldcities/worldcitiespop.txt.gz. Download, Unzip it and save as a text file.
# data = read.table("worldcitiespop.txt")
#
# head(data)
# levels(data)
# test = filter(datas, Country %like% 'l')
#
# test = filter(datas, Country %like% 'lk')
# write.csv( test, "CitiesInSriLanks.csv")