http://theessentialexchange.com/blogs/michael/archive/2009/05/07/hex-and-decimal-output-in-powershell.aspx

With Get-Content -ReadCount.

Regards,

Michael B. Smith
Consultant and Exchange MVP
http://TheEssentialExchange.com


-----Original Message-----
From: Ben Scott [mailto:[email protected]] 
Sent: Friday, April 29, 2011 12:59 PM
To: NT System Admin Issues
Subject: Re: Hex viewer?

  After three replies suggesting text editors (including one I already
use), I apparently need to repeat:

On Fri, Apr 29, 2011 at 12:04 PM, Ben Scott <[email protected]> wrote:
> ... files of arbitrary size (i.e., doesn't read the whole file into memory at
> once)?

  The files I am interested in viewing are too large to open in a text
editor.  The program needs to work by reading only the part of the
file needed to display the current location on-screen, doing more
reads as needed as the user moves around in the file.

  Just for grins, I just tried opening the file in Notepad++.  Memory
usage shot to almost a gig, it pinned a CPU, and then sat there, not
painting.  After ten minutes, I killed the process.

  Aside from the overall file size, the "170 million characters on a
single line" is also likely giving it trouble.

-- Ben

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

Reply via email to