It would be preferable if the code is able to create a new file.
eg: If my file originally is:
fsyfugiuhknklmoiuiuutyughvhjbiuhi
jhiubuguygfvtdrcrsresetgfcyuhijoj
and the new file desired contains a new line char after every 3rd position:
fsy
fug
iuh
knk
…
what should be the code.?
1 Answer