# Stripping code from old WordPro file

**URL:** <https://boards.straightdope.com/t/stripping-code-from-old-wordpro-file/998653>\
**Category:** Factual Questions\
**Created:** [March 9, 2024, 6:24pm UTC](https://boards.straightdope.com/t/stripping-code-from-old-wordpro-file/998653 "2024-03-09T18:24:23Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![LucyInDisguise](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lucyindisguise/32/18064_2.png) [@LucyInDisguise](https://boards.straightdope.com/u/LucyInDisguise)\
**Post date:** [March 9, 2024, 7:48pm UTC](https://boards.straightdope.com/t/stripping-code-from-old-wordpro-file/998653/21 "2024-03-09T19:48:51Z")

</div>

When I change the file format to .lwp my text editor adds an invisible .txt extension to the file name (e.g.: filename.lwp becomes filename.lwp.txt) and I can’t see anyway to make it stop doing that.

Lucy

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [March 9, 2024, 7:50pm UTC](https://boards.straightdope.com/t/stripping-code-from-old-wordpro-file/998653/22 "2024-03-09T19:50:04Z")

</div>

> [@LucyInDisguise](#):
>
> When I change the file format to .lwp my text editor adds an invisible .txt extension to the file name (e.g.: filename.lwp becomes filename.lwp.txt) and I can’t see anyway to make it stop doing that.

Try putting quotes around the name. In Windows, at least, that keeps it from adding .txt at the end.

---

<div class="post-metadata">

**Author:** ![LucyInDisguise](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lucyindisguise/32/18064_2.png) [@LucyInDisguise](https://boards.straightdope.com/u/LucyInDisguise)\
**Post date:** [March 9, 2024, 8:06pm UTC](https://boards.straightdope.com/t/stripping-code-from-old-wordpro-file/998653/23 "2024-03-09T20:06:37Z")

</div>

Okay. Maybe this will help - when I try to open a file with Pages, I get the following error message:

**[filrename.txt] can’t be opened right now.**

Text encoding Western (Windows Latin 1) isn’t applicable.

Does that have any meaning in this?

Lucy

---

<div class="post-metadata">

**Author:** ![beowulff](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/beowulff/32/542_2.png) [@beowulff](https://boards.straightdope.com/u/beowulff)\
**Post date:** [March 9, 2024, 8:10pm UTC](https://boards.straightdope.com/t/stripping-code-from-old-wordpro-file/998653/24 "2024-03-09T20:10:31Z")

</div>

My mistake.  
I was thinking about BBedit’s search and replace, which uses grep to do the matching.

---

<div class="post-metadata">

**Author:** ![Arjuna34](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@Arjuna34](https://boards.straightdope.com/u/Arjuna34)\
**Post date:** [March 9, 2024, 10:50pm UTC](https://boards.straightdope.com/t/stripping-code-from-old-wordpro-file/998653/25 "2024-03-09T22:50:43Z")

</div>

An easier way to do that is use the strings command, which extracts any printable text out of binary files:

[https://man7.org/linux/man-pages/man1/strings.1.html](https://man7.org/linux/man-pages/man1/strings.1.html)

---

<div class="post-metadata">

**Author:** ![DPRK](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DPRK](https://boards.straightdope.com/u/DPRK)\
**Post date:** [March 10, 2024, 3:43am UTC](https://boards.straightdope.com/t/stripping-code-from-old-wordpro-file/998653/26 "2024-03-10T03:43:18Z")

</div>

> [@LucyInDisguise](#):
>
> Gave it my best shot. That converter just successfully converted the file into an identical copy of the original.

I would take advantage of @AHunter3 's generous offer 🙂 I myself do not have a copy of Word Pro, therefore cannot verify any solution.

However, if all else fails, “stripping out the codes” is automatic, using e.g. the `strings` command in the Mac terminal. You definitely do not have to spend any time doing it manually.

---

<div class="post-metadata">

**Author:** ![LucyInDisguise](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lucyindisguise/32/18064_2.png) [@LucyInDisguise](https://boards.straightdope.com/u/LucyInDisguise)\
**Post date:** [March 10, 2024, 4:04am UTC](https://boards.straightdope.com/t/stripping-code-from-old-wordpro-file/998653/27 "2024-03-10T04:04:32Z")

</div>

Well, it was worth a shot. Thanks to everyone who offered suggestions, and especially to you & @AHunter3, who got me to thinking about my computer nerd cousin who still has a PC running a working version of Word Pro. I sent him a couple of files and he spent a couple of hours trying to open them in various ways and concluded that they truly are just text files full of coding symbols. I only have a few more files to strip, and, now that I’m retired, more than enough time on my hands to do the task.

Again, thanks to everyone.

Lucy

---

<div class="post-metadata">

**Author:** ![md-2000](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@md-2000](https://boards.straightdope.com/u/md-2000)\
**Post date:** [March 10, 2024, 11:40pm UTC](https://boards.straightdope.com/t/stripping-code-from-old-wordpro-file/998653/28 "2024-03-10T23:40:54Z")

</div>

If you go into file explorer, and click on the filename so it allows you to edit it, then change the extension, that should actually change the extension. (Giveaway it worked is when it warns you changing the extension means the file may not work with certain programs)

The problem is if you open the file with, say, Notepad, then try to save it - who knows what Notepad adds to the file or how it messes up the codes (Theoretically not much, but who knows). The above suggestions to recover work best if you still have the original LPF files and simply renamed them to TXT. Saving in, say, Notepad - could cause the program to alter codes on saving which it does not think are compatible with actual text documents.

---

<div class="post-metadata">

**Author:** ![Shoeless](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/shoeless/32/7099_2.png) [@Shoeless](https://boards.straightdope.com/u/Shoeless)\
**Post date:** [March 11, 2024, 3:23pm UTC](https://boards.straightdope.com/t/stripping-code-from-old-wordpro-file/998653/29 "2024-03-11T15:23:31Z")

</div>

I know the OP said this is on a Mac, but in Windows File Explorer there is an option to hide extensions for known file types. It’s checked by default but I always turn it off because I want to see the file extensions. If the option is checked, and you create a new text file and name it, say, “readme.txt”, Windows will actually name it “readme.txt.txt”, except you won’t see the second “.txt” displayed onscreen.

---

<div class="post-metadata">

**Author:** ![gnoitall](https://avatars.discourse-cdn.com/v4/letter/g/bb73d2/32.png) [@gnoitall](https://boards.straightdope.com/u/gnoitall)\
**Post date:** [March 11, 2024, 4:01pm UTC](https://boards.straightdope.com/t/stripping-code-from-old-wordpro-file/998653/30 "2024-03-11T16:01:42Z")

</div>

> [@Shoeless](#):
>
> I know the OP said this is on a Mac, but in Windows File Explorer there is an option to hide extensions for known file types.

Apparently this is also true of MacOS.

> **[Show or hide filename extensions on Mac](https://support.apple.com/guide/mac-help/show-or-hide-filename-extensions-on-mac-mchlp2304/mac)**
>
> In the Finder on your Mac, show filename extensions, if you find them useful. They’re usually hidden in macOS.

> Filename extensions are usually hidden in macOS

[Previous page](https://boards.straightdope.com/t/stripping-code-from-old-wordpro-file/998653.md?page=1)
