I have a text file with a specific order of lines and content. I need to write a code that gets the values in rows numbers 3, 4 and 5 then it pushes those values to the file name and save the file by giving the new name and keep a the original file without any changes.
Example:
File name: Default.txt
- ABC
- DEF
- ValueNo1
- ValueNo2
- ValueNo3
- fdf
- FDFDFD
- The new file name will be Default-ValueNo1ValueNo1-ValueNo2ValueNo2-ValueNo3ValueNo3