How to locate End of File marker in a huge flat file?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
sreddy
Posts: 2
Joined: Tue Dec 30, 2003 11:13 pm

How to locate End of File marker in a huge flat file?

Post by sreddy »

Hi,

I am working on a Huge Flat file which contains around 14 million rows and want to find an EOF Marker in that file. Can somebody help me in finding.

Thanks in Advance,
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

Are you speaking of a Ctrl-Z (ASCII 26) character?

Open Find dialog,

make sure RegEx is activated.

Search for
\x1a

\x starts a hex character
1a = 16 + 10 = 26
sreddy
Posts: 2
Joined: Tue Dec 30, 2003 11:13 pm

EOF Marker(ASCII 26)

Post by sreddy »

Thanks for your response, Yes I am looking for Ctrl+Z.

couldn't get anything when I try to find \x1a with my RegExp on,by the way I am using textpad editor.
User avatar
talleyrand
Posts: 624
Joined: Mon Jul 21, 2003 6:56 pm
Location: Kansas City, MO, USA
Contact:

Post by talleyrand »

Are you certain it's \x1a that's in your file? I just created a file and put a ctrl-Z in there and TP found it a-ok. Perhaps it's another non-printable ASCII character? I'd try opening the file in binary mode and see what the actual hex value is for the EOF character. Either select the file using the Open dialog menu or use a real hex editor. I'm a fan of XVI.
I choose to fight with a sack of angry cats.
Post Reply