1
I created a system that imports the names generated in TXT, but the system interprets the ; at the end of each line and write to the bank, however my client’s commercial system, exports the data without the ; in the end, the worst is a telemarketing system that generates files of almost 5000 thousand names a day!
The archive looks like this:
marcos
fulano
ciclano
beltrano
I need PHP to read this file, and generate a new one, but with ; at the end
Would look like this
marcos;
fulano;
ciclano;
beltrano;
Someone gives me a light, and I couldn’t find an example to read and change then record!
Names are separated by space or by line break?
– JuniorNunes
@Juniornunes7, it was an error in formatting the question. Names are separated by line.
– Luiz Felipe Weber
If you already have line breaks, why do you need the
;
?– Bacco