# findsub2.py
# Written by Todd Wareham for CS 2500
"""
Given the name of a text file and a string as command-line arguments, deternmines
 if that string is a substring of any string in the file.

This version is implemented using the in string operator.
"""

import sys

f = open(sys.argv[1], "r")
s = sys.argv[2]
line = f.read()
f.close()

if s in line:
    print "Substring found!"
else:
    print "Substring not found"


