export ascii and insert a text file

John Esak john at valar.com
Thu May 12 13:00:51 PDT 2005



> -----Original Message-----
> From: filepro-list-bounces at lists.celestial.com
> [mailto:filepro-list-bounces at lists.celestial.com]On Behalf Of Enrique
> Arredondo
> Sent: Thursday, May 12, 2005 3:31 PM
> To: filePro mailing list
> Subject: Re: export ascii and insert a text file
>
>
>
> ----- Original Message -----
> From: "Enrique Arredondo" <henry at vegena.net>
> To: "filePro mailing list" <filepro-list at seaslug.org>
> Sent: Thursday, May 12, 2005 10:22 AM
> Subject: Re: export ascii and insert a text file
>
>
> >
> > ----- Original Message -----
> > From: "Brian K. White" <brian at aljex.com>
> > To: "filePro mailing list" <filepro-list at seaslug.org>
> > Sent: Wednesday, May 11, 2005 10:46 AM
> > Subject: Re: export ascii and insert a text file
> >
> >
> >>
> >> ----- Original Message -----
> >> From: "Enrique Arredondo" <henry at vegena.net>
> >> To: <filepro-list at lists.celestial.com>
> >> Sent: Wednesday, May 11, 2005 10:54 AM
> >> Subject: export ascii and insert a text file
> >>
> >>
> >>> How can I make this happend :
> >>>
> >>> I'm generating a XML document to a ascii file , but Under the tag
> >>> "ImageFile" I need to do a quick system command that will
> convert a JPG
> >>> file to a text file and stick in inside this tag and then
> close the tag.
> >>>
> >>> So the Idea is to do this :
> >>>
> >>> Then : "<ImageFile>"{system noredraw "base64 chevy350.jpg >
> >>> chev350.64"{"</ImageFile>" ;gosub writeit
> >>>
> >>> How should I import the chev350.64 to this line ? using a GETENV or
> >>> import ascii line by line ?
> >>
> >> Neither I think.
> >>
> >> assuming the export filename is in ef
> >> and the jpg filename is in jf
> >>
> >> My first suggestion as the best balance between efficient and robust:
> >> close export
> >> system noredraw "base64" < jf < ">>" < ef
> >> reopen export in append mode
> >
> > Ok, so far so good, the base64 file is getting appended to the
> file, but
> > after when I issue any of these commands :
> >
> > Then:  export ascii xritea=(filename) -a
> >
> > or Then :  export ascii xritea=(filename) -a -x
> >
> > Is not writing to the file anymore, Is the "base64 >>" command
> locking the
> > file so that if I try to append it can't any more ? Or After I do a :
> >
> > Then : close xrite
> >
> > Should I do something else before the "export ASCII ....." ?
> >
> > Thanks
> >
> >
>
>
> Never Mind, I figured it out! I'm using 2 exports within the prc and I
> forgot to make an extra line to write to the "2nd export" Duhh.

Are you not reading all of the message thread?  Ken told you this several
messages agao.

JE



More information about the Filepro-list mailing list