Input data: part 1

This commit is contained in:
Les De Ridder 2017-02-23 19:09:48 +01:00
parent 4570cf8862
commit 4bebd07e82
No known key found for this signature in database
GPG Key ID: 5EC132DFA85DB372
1 changed files with 20 additions and 0 deletions

20
input.py Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/python3
import sys
filename = sys.argv[1]
print(filename)
with open(filename) as file:
text = file.readlines()
tokenised = [line.strip().split() for line in text]
videoCount = tokenised[0][0]
endpointCount = tokenised[0][1]
requestDescriptionCount = tokenised[0][2]
cacheCount = tokenised[0][3]
cacheSize = tokenised[0][4]
print(videoCount)