RE: null chars in text file: recover text?

  • From: "Homme, James" <james.homme@xxxxxxxxxxxx>
  • To: "programmingblind@xxxxxxxxxxxxx" <programmingblind@xxxxxxxxxxxxx>
  • Date: Thu, 15 Oct 2009 07:20:28 -0400

Hi Alex,
It sounds like you can strip out the null characters and get the text back.

Jim

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx 
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Alex Hall
Sent: Wednesday, October 14, 2009 5:22 PM
To: Blind Programming List
Subject: null chars in text file: recover text?

Hi all,
Someone on another list sent me a text file, saying that much of the text is
gone but the file size is still the same. This file has been periodically
overwritten (a new copy written over the old one as the file was backed up),
and one day the file's text ended at a random spot and all text after that
spot was erased. I looked at the file in a perl script that gave me the
first character that was not ascii 0 (what I think is a null character) and
the first characters that were not null were the end of the text in the
file, not surprisingly. This tells me that all text after some point was,
for some reason, replaced by null characters. Is there any hope of
recovering the text now? I hope this made sense.


Have a great day,
Alex
New email address: mehgcap@xxxxxxxxx

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind


This e-mail and any attachments to it are confidential and are intended solely 
for use of the individual or entity to whom they are addressed.  If you have 
received this e-mail in error, please notify the sender immediately and then 
delete it.  If you are not the intended recipient, you must not keep, use, 
disclose, copy or distribute this e-mail without the author's prior permission. 
 The views expressed in this e-mail message do not necessarily represent the 
views of Highmark Inc., its subsidiaries, or affiliates.
__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

Other related posts: