def METHOD_NAME(number):
	data = []
	a = 0
	f = open('tool.tbl','r')
	length = ''
	diameter = ''
	txt = ''
	x = 0
	for data in f.readlines():			
			for i in range(0,  13):				
				if data[i]:					
					if data.find( 'T' + str(number) + ' ') > -1:
						if data.find('Z') > -1: 
							txt = data[data.find('Z'): ] 
							x = txt.find(' ')
							length = data[data.find('Z') +1 : data.find('Z') + x] 		
						if data.find('D') > -1: 
							txt = data[data.find('D'): ] 
							x = txt.find(' ')
							diameter = data[data.find('D') +1: data.find('D') + x]
						if data.find(';') > -1: 
							txt = data[data.find(';'): ] 
							x = txt.find('\n')
							desc = data[data.find(';') +1: data.find(';') + x]
						f2 = open('tool.dat',  'w')
						if f2 : f2.write(str(number) + ',' + diameter + ',' + length + ',' + desc)
						f2.close()
	f.close()