def doMap(iFile, mFile, oFile):
	pc = InOut.read(iFile)
	if(pc == None):
		return False
	mapKies = Mapping(mFile)
	pcMapped = mapKies.doMapping(pc)
	InOut.write(oFile, pcMapped)
def doMerge(iFile1, iFile2, oFile):
	pc1 = InOut.read(iFile1)
	if(pc1 == None):
		return False
	pc2 = InOut.read(iFile2)
	if(pc2 == None):
		return False
	pcMerged = Merge.merge(pc1, pc2)
	InOut.write(oFile, pcMerged)
예제 #3
0
#---------------------------------------------
# 344 - Roman Digititis
# Arnas Tamašauskas IFF-9/11
#---------------------------------------------
from InOut import InOut
from NumberInfo import NumberInfo


inputFile = "StartingData.txt"
resultFile = "Result.txt"

# Using console 
#allNumbers = InOut.inputStartingData_Console()
#InOut.outputResult_Console(allNumbers)

# Using files
allNumbers = InOut.inputStartingData_File(inputFile)
InOut.outputResult_File(allNumbers, resultFile, inputFile)