Converting old Simple Text documents (.txt) to Rich Text Format (.rtf) so I can open them in Pages.

I have a bunch of text files from 20+ years ago that were in Simple Text (.txt) and I'm trying to open them so I can import them into Pages and revise & expand them. However, even starting with Text Edit (.rtf) I get gibberish. I searched for an off-line answer because I do not want my files floating around on the internet. What I found was a program called Document Converter on the Mac App Store. And it did work at converting a few of the files to .rtf, but the majority of them still end up as gibberish. And I am a bit shocked and disappointed that Apple doesn't seem to have a solution for this. Does anyone have a solution?

MacBook Pro 16″, macOS 13.2

Posted on Mar 4, 2023 1:42 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 6, 2023 9:17 AM

This might not be a Simple Text .txt file at all. The first 4 chars PCT7 could be an indication of wha the file is actually (it is sometimes called a Magic Number).


You could try the terminal command "file" to figure what this file really is. Open Terminal.app (it is in the Utilities folder). Type "file" (without the quotes), type a space char and then drag the file in question from Finder right into the terminal window. This will add the full file path and name after the space. Hit return and see what the output tells you. The file command works with a large database of Magic Numbers and similar things and is often the best tool to find out what a file really is. If the answer is not clear post a screenshot here and we might be able to help further.


---markus---

12 replies
Question marked as Top-ranking reply

Mar 6, 2023 9:17 AM in response to Norse Son

This might not be a Simple Text .txt file at all. The first 4 chars PCT7 could be an indication of wha the file is actually (it is sometimes called a Magic Number).


You could try the terminal command "file" to figure what this file really is. Open Terminal.app (it is in the Utilities folder). Type "file" (without the quotes), type a space char and then drag the file in question from Finder right into the terminal window. This will add the full file path and name after the space. Hit return and see what the output tells you. The file command works with a large database of Magic Numbers and similar things and is often the best tool to find out what a file really is. If the answer is not clear post a screenshot here and we might be able to help further.


---markus---

Mar 11, 2023 6:41 AM in response to Norse Son

I do have an older iMac, but I haven't turned it on in about 5 years. It was the original iMac Intel with a Core Duo (Yonah). I went as far as I could with it as far as OS upgrades, so it's running Snow Leopard (MacOS X v10.6.8?). If it still runs I could see if I have any better luck, and if nothing else I could save them as RTF. Or possibly open them in that version of Pages, which I think was still part of Apple Works at the time, and then transfer them to a USB thumb drive and to my new MacBook Pro 16" with M1-Max... Now you talk about a jump from Medieval times to the Space Age...

Mar 11, 2023 8:28 AM in response to VikingOSX

Yeah, I think I will try the idea of starting up my old iMac. It may have the best chance, since it's running Snow Leopard, which is what, 5-7 OS upgrades back? Of course I may have to use the old Software Upgrade disk to start it up as I have long forgotten the password for that machine. Perhaps there's something to be said for pen & paper. After all, writers have been using that trustworthy method for thousands of years and you can still read the file... Unless of course it's a doctor's prescription, and then it was anybody's guess what the medication was.

Mar 5, 2023 9:00 AM in response to Norse Son

I downloaded Libre Office and got the same results. More gibberish. And I guess that the thing that puzzles me the most is that Apple didn't include the ability to automatically convert simple text (.txt) documents into Rich Text Format (.rtf) when they replaced Simple Text with Text Edit. Or that Pages doesn't have the ability to open them. From the forum page on Simple Text I understood that this ability was included in the developer tools for Panther, but how long ago was that...


And I tried unsuccessfully to find the text/document version of a Graphic Converter type app, and Document Converter, as I said, is the closest thing, but even it is hit or miss.

Mar 11, 2023 6:26 AM in response to ruggiero

I don't know if that helped. I opened Terminal, typed file, hit the space bar, then dragged the file into the window and hit return. I tried it a second time with another file and got a similar result. It merely seems to show the path to the file, but not any pertinent info about the file itself.



I am wondering if, based on the creation dates for these files, if some were created during the brief period I switched over to "The Dark Side". Between September of 2000 and April of 2002 I was in grad school. At the time I could not afford a Mac for classes, so I bought a Toshiba laptop running Windows 98. My primary apps were Word Perfect and Final Draft (I was pursuing a screenwriting degree). When I switched back to Mac I had the Mac version of Final Draft, so those files were accessible. However, I wonder if the others are either in a Word Perfect or Microsoft format, and that's why I can't access them. And I still have some older files that have (WN3) after the name, which would make them a Write Now 3.0 file - I really miss that app.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Converting old Simple Text documents (.txt) to Rich Text Format (.rtf) so I can open them in Pages.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.