The nocz utility is one of the utilities that can be used to remove extra control-z's from files. Also anyone with a windows copy of duxbury may find the wring utility very helpful in this respect. If neither of those is available, sed can be downloaded on windows and used and it can also clean these from files and do lots more stuff too. The sed utility though can either be an enormous help or an enormous danger depending on the knowledge level of the particular user. The sed utility is well worth the learning curve needed to become knowledgeable too. The sed utility uses streams into which files get pulled for processing. Rot47: <;F56]52D9:6==@?2GJ]>:=> -----Original Message----- From: programmingblind-bounce@xxxxxxxxxxxxx [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of qubit Sent: Thursday, October 15, 2009 8:57 To: programmingblind@xxxxxxxxxxxxx Subject: Re: null chars in text file: recover text? Hi -- the control+z character is the command to close a file, but it does not appear in the contents of the file. --le ----- Original Message ----- From: "DaShiell, Jude T. CIV NAVAIR 1490, 1, 26" <jude.dashiell@xxxxxxxx> To: <programmingblind@xxxxxxxxxxxxx> Sent: Thursday, October 15, 2009 7:13 AM Subject: RE: null chars in text file: recover text? I don't have the Unicode table to hand so will only speculate about what's going on with this file. The eof in ascii is a control-z character represented by (^z) probably when jaws finds it. I think what notepad is doing is space padding the file. Rot47: <;F56]52D9:6==@?2GJ]>:=> -----Original Message----- From: programmingblind-bounce@xxxxxxxxxxxxx [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Alex Hall Sent: Thursday, October 15, 2009 7:39 To: programmingblind@xxxxxxxxxxxxx Subject: Re: null chars in text file: recover text? Thanks. What is the ascii of EOF? Also, there is something odd about the file: I wrote the script to get me the first 16 characters that are not ASCII 0, which it does; it gets the characters I expect, the last of the remaining text. However, when I open the file in Notepad and have jaws tell me the unicode of the characters, it keeps reporting 32 as the characters after the last of the text, not 0, even though my script skips these characters, meaning they have to be 0 and not 32. Any thoughts on what is going on with this file? Have a great day, Alex New email address: mehgcap@xxxxxxxxx ----- Original Message ----- From: "DaShiell, Jude T. CIV NAVAIR 1490, 1, 26" <jude.dashiell@xxxxxxxx> To: <programmingblind@xxxxxxxxxxxxx> Sent: Thursday, October 15, 2009 7:27 AM Subject: RE: null chars in text file: recover text? I would also remove that end of file marker then locate any remaining end of file markers and see if one of them was in reasonable position for the end of file by file size. Then I'd strip any earlier end of file characters out and see what got recovered after that. With data recovery the work is a continuous series of experiments. Rot47: <;F56]52D9:6==@?2GJ]>:=> -----Original Message----- From: programmingblind-bounce@xxxxxxxxxxxxx [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Homme, James Sent: Thursday, October 15, 2009 7:20 To: programmingblind@xxxxxxxxxxxxx Subject: RE: null chars in text file: recover text? 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 __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind