У меня есть папка, в которой содержится какой-то TXT-файл, я хочу удалить строку разрыва (ввод) в каждом файле. Можно ли это сделать?
Пример структуры дерева папок:
Action
|--15minutes.txt
|--2012.txt
|--alien.txt
|--alien3.txt
|--......txt
Animation
|--9.txt
|--aladdin.txt
Family
|--addamsfamilythe.txt
|--big.txt
|--t.t.txt
|--happy.txt
|--kungfupanda.txt
Пример содержания txt файла:
ALADDIN: THE COMPLETE SCRIPT
COMPILED BY BEN SCRIPPS
(Portions Copyright (c) 1992 The Walt Disney Company
PEDDLER: Oh I come from a land
From a faraway place
Where the caravan camels roam
Where they cut off your ear /Where it's flat and immense
If they don't like your face /And the heat is intense
It's barbaric, but hey--it's home!
When the wind's at your back
And the sun's from the west
Что я хочу получить:
ALADDIN: THE COMPLETE SCRIPT COMPILED BY BEN SCRIPPS (Portions Copyright (c) 1992 The Walt Disney Company PEDDLER: Oh I come from a land From a faraway place Where the caravan camels roam Where they cut off your ear /Where it's flat and immense If they don't like your face /And the heat is intense It's barbaric, but hey--it's home! When the wind's at your back And the sun's from the west
(только в 1 строку)
Спасибо за преимущество!