Apr-27-2018, 06:47 PM
Hello and welcome to the forums!
What you want to achieve is certainly possible. You can do it in a few steps. First read the file. You can traverse the lines and find the line you want by a pattern. But if the value you want is always on 6th line, it's even easier, just read the 6th line. Then you can convert the string (line) to a list and get the 2nd element from it.
That is basically it. For all of the steps you can find ample resources online. If you get stuck, feel free to post the code (in Python code tags), errors in error tags if you get them, or actual vs desired result if it won't work as expected.
What you want to achieve is certainly possible. You can do it in a few steps. First read the file. You can traverse the lines and find the line you want by a pattern. But if the value you want is always on 6th line, it's even easier, just read the 6th line. Then you can convert the string (line) to a list and get the 2nd element from it.
That is basically it. For all of the steps you can find ample resources online. If you get stuck, feel free to post the code (in Python code tags), errors in error tags if you get them, or actual vs desired result if it won't work as expected.