MCPcopy Create free account
hub / github.com/ActiveState/code / printfile

Function printfile

recipes/Python/123894_Text_Based_Guest_Book/recipe-123894.py:17–21  ·  view source on GitHub ↗
( file_name )

Source from the content-addressed store, hash-verified

15
16# Print the header from an external file
17def printfile( file_name ):
18 file = open( file_name , "r")
19 for line in file.readlines():
20 print line
21 file.close();
22
23# define a function for the message entry
24# entry == the form dictionary

Callers 1

recipe-123894.pyFile · 0.85

Calls 3

openFunction · 0.50
readlinesMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected