[ create a new paste ] login | about

Project: circuits
Link: http://circuits.codepad.org/oHhsQ1vG    [ raw code | output | fork ]

Python, pasted on Jan 15:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
if __name__ == "__main__":
    import sys
    out = open("C:/out2.txt", "w")
    #sys.stderr = sys.stdout = out
    filename= "C:/helloworld2.txt"
   # app = FileApp(filename, "r")
    f = Overlapped_File(filename, "r")
    f.start()
    f.fire(Read())
    for x in range(10):
        idk_event = GenerateEvents(4)
        #f._generate_events(idk_event)
        f.fire(idk_event)
    f.close()


Output:
1
2
3
4
Traceback (most recent call last):
  Line 3, in <module>
    out = open("C:/out2.txt", "w")
IOError: [Errno 2] No such file or directory: 'C:/out2.txt'


Create a new paste based on this one


Comments: