Joe
Sun Oct 21 03:37:31 PDT 2007
"Alain Terieur" <alain@terieur.fr> wrote in message
news:471afd9a$0$5080$ba4acef3@news.orange.fr...
> hello
>
> I want this
> GHI
> DEF
> ABC
>
> thank
>
> "Pegasus (MVP)" <I.can@fly.com> a écrit dans le message de news:
> e9DXy31EIHA.2004@TK2MSFTNGP06.phx.gbl...
>>
>> "Alain Terieur" <alain@terieur.fr> wrote in message
>> news:471a4ac2$0$25924$ba4acef3@news.orange.fr...
>>> hello
>>>
>>> J want to inverse the line of a fichier
>>> do you know, how do this please
>>> thank you
>>>
>>
>> It depends on what you mean. If the source file
>> looks like so:
>> ABC
>> DEF
>> GHI
>> do you want this:
>> CBA
>> FED
>> IHG
>> or this:
>> GHI
>> DEF
>> ABC
>>
>
Read each line using FileSystemObject/TextStream into an array. Write out
each line in reverse order to a new file by starting at the end of the array
and working backwards. Rename and delete the files accordingly.
--
Joe Fawcett (MVP - XML)
http://joe.fawcett.name
.