Untitled


SUBMITTED BY: Guest

DATE: Oct. 22, 2016, 6:59 p.m.

FORMAT: Text only

SIZE: 1.2 kB

HITS: 438

  1. # -*- coding: utf-8 -*-
  2. """
  3. Created on Mon Oct 17 16:23:07 2016
  4. @Name: Übung2
  5. @Matrikelnummer 1525460
  6. @author: Matthias Katzenbeißer
  7. """
  8. from os import listdir
  9. myfolder= 'imsil_out'
  10. #alle Files auflisten
  11. allfiles = [f for f in listdir(myfolder)]
  12. print("allfiles: ", allfiles)
  13. #outFiles auflisten
  14. outfiles = [f for f in listdir(myfolder) if f.endswith('.out')]
  15. print("outfiles: ")
  16. print("outfiles: ", outfiles)
  17. i=0
  18. while i <=13:
  19. file = myfolder+'/'+outfiles[i]
  20. f = open(file)
  21. search = 'tilt='
  22. line = f.read()
  23. searchfile = open(file, "r")
  24. for line in searchfile:
  25. if "tilt=" in line:
  26. auslesen = line
  27. sss=auslesen[18:23]
  28. searchfile.close()
  29. print(auslesen[18:23])
  30. i=i+1
  31. """
  32. f01=open('ga30_0.out')
  33. f02=open('ga30_10.out')
  34. f03=open('ga30_20.out')
  35. f04=open('ga30_30.out')
  36. f05=open('ga30_40.out')
  37. f06=open('ga30_50.out')
  38. f07=open('ga30_60.out')
  39. f08=open('ga30_70.out')
  40. f09=open('ga30_75.out')
  41. f10=open('ga30_80.out')
  42. f11=open('ga30_85.out')
  43. f12=open('ga30_87.out')
  44. f13=open('ga30_88.out')
  45. f14=open('ga30_89.out')

comments powered by Disqus