Posted: Mon Dec 15, 2008 6:55 pm Post subject: Re: Read Error File Won't Open
I have a few questions for you.
lreeve wrote:
I can't open it in anything.
Did you try opening it in TextEdit? Do you get the same error message?
If you are unfamiliar with TextEdit, it is a simple word processor that Apple bundles with Mac OS X. You can access TextEdit by launching the /Applications/TextEdit application in the Finder.
What version of NeoOffice are you running? You can determine this by selecting the menu Help :: About NeoOffice when NeoOffice is running.
I think that this might be caused by bug 2803 which is a known bug in NeoOffice's underlying OpenOffice.org code. IIRC, when you have change tracking turned on (that is, the Edit :: Changes :: Record menu is checked), saving as an .rtf file will create a file that is missing the last byte.
If you are suffering from this same bug, you can fix the file by appending the missing byte onto the end of the .rtf file. To do this, try the following steps:
1. Launch the /Applications/Utilities/Terminal command, copy the following command into the Terminal window, press the spacebar to add a space after the copied command:
Code:
echo '}' >>
2. Drag the .rtf file into the Terminal window. This will append the absolute path of the .rtf file onto the same line as the copied command.
3. Press the Return key to execute the command. There should be no output in the Terminal from this command. If there is output, please paste the output into this forum topic.
4. If there was no output in step 3, close the Terminal window and try opening the .rtf file in NeoOffice or the TextEdit application.
NO, slightly different error (file format error found t 1589,1 (row,col). Doesn't open in TE either. File modify date did change.
Can you try repeating the steps in my last post unitl the "(row,col)" value in the error does not change?
If the file still does not open after doing that, would you be able to upload the file somewhere where we can download it so that we can take a look at it? If yes, the best way to upload it would be to create an account in Bugzilla and attach the .rtf file to bug 2803. Please post a comment in the bug after you attach the file so that we get notified of the change to the bug.
number kept incrementing, I have uploaded the file. SASNovelC copy 1.rtf
I have found where the missing "}" characters needed to be inserted and I have attached a fixed file in bug 2803.
Strangely, the missing "}" characters were not at the end of file which explains why my steps did not work. Instead, the missing characters were in the table of contents.
Now that we know that NeoOffice's underlysing OpenOffice.org code will seriously corrupt a file that hyperlinks when saving as .rtf, just to be safe I would definitely recommend not using NeoOffice to edit this file and, instead, use only Microsoft Word or TextEdit.
Out of curiosity, I opened the fixed .rtf file in NeoOffice 2.2.5, checked the Edit :: Changes :: Record menu and made changes like adding text and inserting some new hyperlinks. I then saved my changes back to the .rtf file, closed the file, and reopened it.
To my surprise, the modified .rtf file opened fine. So, I am stumped as to how your original file got corrupted. Was the original .rtf file saved in an earlier version of NeoOffice or was it saved by a different application like OpenOffice.org? We may never know the cause of the corruption in the original file, but if you remember anything that was different at the time you saved the original .rtf, let us know as that might help us ensure that future versions of NeoOffice do not cause the same file corruption.
The file was originally created in word, opened a few times in NISUS Pro, then opened in NeoOffice 2.2.2 p4. I always saved as rtf format. I had opened it many times but the last time I tried to create a table of contents with links. The table generated but the hyperlinks wouldn't work, so I kept generating it, but it never did work. The next time I tried to open the error occurred. Surprisingly, in the fixed file the links work in text edit. BTW, I never did anything with track changes.
The file was originally created in word, opened a few times in NISUS Pro, then opened in NeoOffice 2.2.2 p4. I always saved as rtf format. I had opened it many times but the last time I tried to create a table of contents with links. The table generated but the hyperlinks wouldn't work, so I kept generating it, but it never did work. The next time I tried to open the error occurred. Surprisingly, in the fixed file the links work in text edit. BTW, I never did anything with track changes.
Yeah, the hyperlinks are definitely what triggered the corruption. Fortunately the corruption was fairly easy to fix and is easier to fix again now that we know what to look for.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum