End of File character

General questions about using TextPad

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

Post Reply
Leigh Tingle
Posts: 2
Joined: Sat May 19, 2007 5:47 am

End of File character

Post by Leigh Tingle »

I produce EDIFACT EDI messages and sometimes need to look at the message generated by a translator using TextPad. Messages then sent EDI to a third party are rejected due to no End Of File character.

However, if I just send the file without first looking using TextPad it is accepted.

What does TextPad do?
Cringing Dragon
Posts: 7
Joined: Fri May 04, 2007 11:39 pm

Post by Cringing Dragon »

You haven't really given us enough information to work with, which may be why you haven't had any responses yet.

You should be able to LOOK at a file in TextPad without saving it. If you are doing this (just opening the file and closing it without saving), then TextPad should not be altering the file at all. Are you using TextPad only to view the file (as your wording implies), or are you editing and saving changes?

It would help if you could tell us what end of file character is required. That could give non-EDIFACT users a clue as to whether the issue relates to (for example) character sets or DOS/unix differences. A sample of the file format would also help. Put in in a code box for us to see it clearly (paste it into your message post, then highlight it and hit the Code button which is conveniently provided under the subject line in the post editor).

In lieu of more specific advice, there are a few options in Document Class Options (under Configure Preferences) that might be causing the problem. Check (or try changing) the options relating to the code set, file format, and strip trailing spaces. There's also an option in Configure - Preferences - Editor to "Automatically terminate the last line of the file", which if turned on might be adding a blank line after your end of file and that might upset it.
Leigh Tingle
Posts: 2
Joined: Sat May 19, 2007 5:47 am

Post by Leigh Tingle »

More info....
I open the file and it appears as a long string. I have a small macro that inserts CRLFs after each single quote (that is the character indicating end of segment in EDIFACT messages).
This allows me to view easily.
Once viewing is complete I run another macro that simply removes the CRLFs and I exit the file and answer no to the "Save Changes".
Now I think about it, that operation obviously removes the last CRLF which probably needs to be there.
Post Reply