dbTalk Databases Forums  

"Garbage" added at end of file

comp.databases.paradox comp.databases.paradox


Discuss "Garbage" added at end of file in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
N! Xau
 
Posts: n/a

Default "Garbage" added at end of file - 07-07-2003 , 03:01 PM






Hello,

I use Paradox 4.0 to open some text files, add information and save them in
text format still.
For some reason, my Paradox program adds some "garbage", exactly one line at
the beginning and one line at the end of each file.

Here is the relevant code for the import script:
....
{Tools} {ExportImport} {Import} {ASCII} {AppendDelimited} {filename}
....
and for the export script:
....
{Report} {Output} {ScriptName} {1} {File} {destination_filename} {replace}
....


Thanks for help
N! Xau



Reply With Quote
  #2  
Old   
Tony McGuire
 
Posts: n/a

Default Re: "Garbage" added at end of file - 07-07-2003 , 03:09 PM







If you examine the end of the file, you probably have a carriage return and
linefeed. That is normal.

You may also have a null character, end-of-file marker.


--
--
Tony

"I woke up and was able to get myself out of bed.
Being that fortunate, what's to complain about?"
_____________




Reply With Quote
  #3  
Old   
N! Xau
 
Posts: n/a

Default Re: "Garbage" added at end of file - 07-07-2003 , 03:25 PM




"Tony McGuire" <tony (AT) paradoxcommunity (DOT) com> wrote

Quote:
If you examine the end of the file, you probably have a carriage return
and
linefeed. That is normal.

You may also have a null character, end-of-file marker.
No, Tony, it's a sequence of 7-10 garbage characters, like ?-?? and similar.
Not always the same, they vary.
And, again, it appears at the end and also at the begin of the file.

bye
N! Xau




Reply With Quote
  #4  
Old   
Tony McGuire
 
Posts: n/a

Default Re: "Garbage" added at end of file - 07-07-2003 , 03:25 PM




"Here is the relevant code for the [import/export] script:"

I'd say you should post the IRrelevant code.

It appears that you are appending to the file. What's in the file to begin
with, and what makes you think the export/import routines are what are
adding those characters?



--
--
Tony

"I woke up and was able to get myself out of bed.
Being that fortunate, what's to complain about?"
_____________

"N! Xau" <xness1 (AT) hotmail (DOT) com> wrote

:
: "Tony McGuire" <tony (AT) paradoxcommunity (DOT) com> wrote in message
: news:3f09d394$1 (AT) jedstarmail (DOT) psfloan.com...
: >
: > If you examine the end of the file, you probably have a carriage return
: and
: > linefeed. That is normal.
: >
: > You may also have a null character, end-of-file marker.
:
: No, Tony, it's a sequence of 7-10 garbage characters, like ?-?? and
similar.
: Not always the same, they vary.
: And, again, it appears at the end and also at the begin of the file.
:
: bye
: N! Xau
:
:



Reply With Quote
  #5  
Old   
Dave Porter
 
Posts: n/a

Default Re: "Garbage" added at end of file - 07-07-2003 , 04:55 PM



Quote:
and for the export script:
...
{Report} {Output} {ScriptName} {1} {File} {destination_filename} {replace}
You are probably getting a printer control code string at the top of your
report and a printer reset string at the end...
goto:
{Report} {Change} {ScriptName(actually table name)} {Settings}{Setup}
and snoop around there, maybe something in CCP
goto:
alt-spacebar {Utilities} {Custom} {Reports} {Printer Setup}

pick the standard printer which should not have any set up strings

Dave




Reply With Quote
  #6  
Old   
Steven Green
 
Posts: n/a

Default Re: "Garbage" added at end of file - 07-07-2003 , 05:10 PM



Dave Porter wrote:

Quote:
You are probably getting a printer control code string at the top of your
report and a printer reset string at the end...
yes.. I missed that one..



--

Steve Green - Diamond Software Group, Inc - Waldorf Maryland USA
Corel CTech Paradox - http://www.diamondsg.com - Support/Downloads/Links
---------------------------------------------------------------------------------

Do you need a Sanity Check? http://www.diamondsg.com/sanity.htm
Upgrade/Downgrade versions? http://www.diamondsg.com/upgrade.htm
-------------------------------------------------------------------------




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.