Many thanks,
Duncan
Hi Duncan,
I'm not sure you can do it without reading the whole file first.
Anyway, the following reads a file and then reverse its content:
function tac($file){ $f= @(cat $file); $f[($f.length-1)..0] }
---
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
Thanks Shay, I thought that might be the case...
Regards,
Duncan
param
([string]$path)"Keith Hill [MVP]" <r_keit...@mailhot.moc_no_spam_I> wrote in message news:C1959F71-7AF2-453D...@microsoft.com...
Thanks Keith, that works well.
Duncan
I'm seeing spaces between every character with some files. Is that b/c they are
unicode?
--
Author, Tech Prosaic blog (http://halr9000.com)
Webmaster, Psi (http://psi-im.org)
Community Director, PowerShellCommunity.org
Co-host, PowerScripting Podcast (http://powerscripting.net)