I have a text file of following type-
eng Firstly, in the course of the last few decades the national
eng Secondly, the national courts will be empowered to implement
eng However, I am convinced of the fact that the White Paper has put us on
the right path.
I want to restrict the length of each line upto (say) 9 words. I tried of using python's read_line method but it specifies the size of the line only.I am unable to find any other suitable method. How to do it ?
Sample Output-
eng Firstly, in the course of the last few
eng Secondly, the national courts will be empowered to
eng However, I am convinced of the fact that