[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BASIC: File type mismatch??



Jeff Vannest (jefflv@delphi.com) wrote:
:         HELP!!!! You all have been such a help in the past that I 
: almost hesitate to bother you again, BUT, here it goes....

: I'm trying to get text from the Apple][e to the IBM...
: Well, I got the output running over to the IBM o.k., but the basic
: program will not open up the file from the disk correctly. Here is the
: output from the session:

:  105 F$ = "sermons"
:  110 D$ =  CHR$ (4)
:  120  PRINT D$"PR#1"
:  130  PRINT D$"OPEN ";F$
:  140  ONERR  GOTO 190
:  150  PRINT D$"read ";F$
:  160  GET ZZ$: PRINT ZZ$;: GOTO 160
:  190  PRINT D$"CLOSE"
:  200  POKE 216,0: PRINT D$"pr#0"

(naturally, I've deleted much of the information..)

The first response was correct, you need to [P]rint your Appleworks word
processor file to a text file.  Select PRINT, then TO A TEXT (ASCII) FILE
ON DISK.  Specify the complete pathname of the destination file; i.e.
/JOHN/SERMONS.TXT  Don't use the same name as the original file...tack a
'.TXT' onto the end, or preface the name with "T." or something like that
that you can recognize.

Your program should work; since you are using GET, you shouldn't be having
comma problems or anything like that.

--Dave Althoff, Jr.