Cannot edit binary file - read only

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
wjb
Posts: 11
Joined: Fri Apr 28, 2006 3:01 pm
Contact:

Cannot edit binary file - read only

Post by wjb »

I want to edit a .exe (binary) file but Edit menu is not available. When I try to edit values and status line says "This document is read only!"

The windows file propertys (attributes) are not Read-only.

I tried the "togglereadonly" command, but does not seem to work (not sure I used keyboard correctly ctrl-Q,E)


I have sucessfully made changes in this file before using textpad, but cannot do it now. Please help.

Bill
User avatar
Nicholas Jordan
Posts: 124
Joined: Mon Dec 20, 2004 12:33 am
Location: Central Texas ISO Latin-1
Contact:

Post by Nicholas Jordan »

Seems to me I had the same experience.

Went to open a binary file one day and went to change something, probably the cr/lf issue and felt that I had been able to edit binary before.

File Props and Configure/Read Only as you described.

That was one of the first non-trivial programs I wrote, would have been effective at that point to just change the cr/lf ordering.

BTW - Cay S. Horstman notes in one of his source codes that the cr/lf - as coded used to work. We are not alone !
The only dumb question is one you should have asked and didn't.
kindlerm
Posts: 11
Joined: Wed Jan 11, 2006 11:19 am
Location: Berlin, Germany

Post by kindlerm »

AFAIK, Textpad does not support hex editing, just viewing. Maybe v5 (if it will ever see the light of day) might have it.

Martin
User avatar
Nicholas Jordan
Posts: 124
Joined: Mon Dec 20, 2004 12:33 am
Location: Central Texas ISO Latin-1
Contact:

Post by Nicholas Jordan »

Oki-doki
User avatar
Bob Hansen
Posts: 1517
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Hope this was helpful.............good luck,
Bob
parmstr
Posts: 1
Joined: Tue Nov 07, 2006 2:36 pm
Location: walla walla

How to view in binary (hex) mode

Post by parmstr »

Can someone explain how to open a file in binary view mode...or to toggle between binary and text view once a file is open? thx
kindlerm
Posts: 11
Joined: Wed Jan 11, 2006 11:19 am
Location: Berlin, Germany

Post by kindlerm »

You cannot toggle between text and binary format (one of my enhancement wishes years ago).
To open a file in binary mode specify the file format as "binary" in the open file dialog.

Martin
Post Reply