Artifact 6bf9af39d0bbf1681d27a0fd5da4ec901efd07ce:
- File tests/langbench/cat.py — part of check-in [69b737f5a1] at 2016-04-19 20:35:49 on branch little — Fork of Tcl used in the "Little" project. http://www.mcvoy.com/lm/little/index.html (user: dgp, size: 226) [annotate] [blame] [check-ins using]
#!/usr/bin/python import os import sys def cat(file): f = open(file) for line in f: print line, f.close() def main(): for a in sys.argv: cat(a) if __name__ == "__main__": main()