Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!lll-winken!sun-barr!cronkite!newstop!sun!amdahl!fadden From: fadden@uts.amdahl.com (Andrew T. McFadden) Newsgroups: comp.sys.apple2 Subject: Re: More BASIC programs Summary: An easy one Message-ID: Date: 28 Jun 91 17:12:34 GMT References: <1991Jun27.003549.3197@clark.edu> Reply-To: fadden@tde.uts.amdahl.com (Andy McFadden) Organization: Amdahl Corporation, Sunnyvale CA Lines: 23 In article <1991Jun27.003549.3197@clark.edu> apollo@pro-hindugods.cts.com (System Administrator) writes: >40 PRINT D$"OPEN "TS$:PRINT D$"APPEND "TS$:PRINT TEXT$:PRINT D$"CLOSE "TS$ ^^^^ >What that gives me is a syntax error. Try typing the followng: 10 ABCD$ = "foo" 20 TEXT$ = "bar" 30 TOAD$ = "garp" You should notice a slight difference in the spacing. That's because "TEXT" and "TO" are reserved words in Applesoft, and therefore cannot be part of a variable name. [ description of other stuff deleted ] If it gives you a "?SYNTAX ERROR", then the problem is with what you typed, not with what the program is doing. >Amrit -- fadden@uts.amdahl.com (Andy McFadden)