That is because I made a test file from your posting and put it into the working directory, the same directory the code file is in.
Since you have the real thing you can replace
fname = "violate.dat"
with
fname = r"C:\HourlyATC\viols.lis"
Reputation Points: 625
Solved Threads: 211
Posting Virtuoso
Offline 1,704 posts
since Aug 2005