Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/anim/completeTest/ioexample.py
blob: 020e09e888d9b3063788f27841f5a02c45a6c474 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /usr/bin/env python
#
print "\nWelcome to the master File Type Tester Interface"
print "Authors: Scott 'JT' Mengel and Dave Silverman"
print "\nPlease select the test(s) you want to run, in the order you want to run them, seperated by commas.\n"
print "1. Simple File Type Variety Test, as images"
print "2. Simple File Type variety Test, as sprites"
print "3. Selected Scalability Test"
file=open('./localfile','a')
keyIn=0

while 1:
    try:
        keyIn = int(raw_input(">"))
        print "You have selected %i"%keyIn
        file.seek(5)
        file.write("File Accessed!%s"%str(keyIn))
        break
    except ValueError:
        print "Error: out of bounds."