def displayFile(filename):
 print (('File ' + filename) + ' is being displayed.')
 fileText = archive.getFileText(filename)
 gcodec.writeFileMessageSuffix(filename, displayText(fileText), 'The gcode log file is saved as ', '_log')

def displayFile ( filename ) : print ( ( 'File ' + filename ) + ' is being displayed.' ) fileText = archive . getFileText ( filename ) gcodec . writeFileMessageSuffix ( filename , displayText ( fileText ) , 'The gcode log file is saved as ' , '_log' )
parse a gcode file and display the commands .