Hello,
I need help with the following problem:
*Write a loop that reads each line of a file and counts the number of lines
that are read until the total length of the lines is 1,000 characters. Use a
break statement to make sure that you don't continue reading the file once
the 1,000 characters a
I have opened a file in binary mode.
The 9th, 10th and 11th bytes contain the time in seconds.
In order to get this value in decimal I did the following:
timeinsec = bytes[9] * 65536 + bytes[10] * 256 + bytes{11]
Would someone please advise if there is a better way to do this?
Thanks,
Julie