Created
October 17, 2012 05:02
-
-
Save Nalisarc/3903792 to your computer and use it in GitHub Desktop.
Import Function\Input Output tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import inputfun | |
import outputfun | |
outputfun.writeot() | |
inputfun.readin() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def readin(): | |
io = open("outputtest.txt","r") | |
read = io.read() | |
print read | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def writeot(): | |
io = open("outputtest.txt", "a") | |
write = raw_input('Input Random Text Here: ') | |
s = str(write + '\n') | |
io.write(s) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment