import os
import codecs
basedir = "C:\\Data"
FILE_NAME = os.path.join(basedir,"sampdict.txt")
roman_urdu = {}
try:
if os.path.isfile(FILE_NAME):
store = codecs.open(FILE_NAME,'r','utf-8')
for line in store.readlines():
eng,urdu = line.strip().split(':',1)...