I have a text file lets say FileA.txt. I want to split this txt file at every 25 lines so Line 0-25 will be File1.txt, Lines 26-50 will be File2.txt and so on.
I have attempted to follow:
Splitting large text file into smaller text files by line numbers using Python
But have not had much luck. My python skills are pretty basic and low-level.
When I ran it I got the following error:
"", line 1 SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
Then I added an r like so with open(r'C:\Users and now I get PermissionError: [Errno 13] Permission denied: 'C:\Users\joker\Desktop\LiveStream_Videos'