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

Re: BASIC: File type mismatch??



In article <9412022342591.DLITE.jefflv@delphi.com>,
Jeff Vannest <jefflv@delphi.com> wrote:

> NAME           TYPE  BLOCKS  MODIFIED 
>
> EVAGELISM       AWP      11  11-AUG-94
> SERMONS         AWP       3  16-NOV-93
> [few deleted...]
> THANKSGIVING.93 AWP      12  28-NOV-93
> SERMON.12.26.93 AWP       4  26-DEC-93
> PRIORITIES.IV   AWP      13  18-AUG-94
> 
>BLOCKS FREE:   23     BLOCKS USED:  257

>]list                      <--------list command by me
>
> 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"
>
>]run                        <-------run command by me!
>
>
>FILE TYPE MISMATCH        <--error that I can't figure out!!!!
>
>BREAK IN 130

Strictly speaking, you'd have to make line 130 like this:

130 print d$"open"f$",tawp"

Since open normally is used with TXT files, you have to use the T parameter
to open others. But this won't work so hot since AWP files have a bunch of non
text stuff in them. The easy way would be to save your AWP files into TXT files
inside Appleworks and then use the program to transfer them.

Sure am glad my "big" machine is a Mac and I can just use file sharing over
localtalk to transfer files. I do love Apple hardware.
--
Randy Shackelford                                Huh huh, that was cool.
shack@crash.cts.com