Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 15:48 11 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Possible manual typo???

Author Message
Paul_L
Guru

Joined: 03/03/2016
Location: United States
Posts: 769
Posted: 08:23am 04 Jul 2018
Copy link to clipboard 
Print this post

I just noticed the following in the MMBasic DOS Version Manual V5.04.08.pdf.
  Quote  nbr1 = 123 : nbr2 = 56789
OPEN "numbers.txt" FOR OUTPUT AS #1
PRINT #1, nbr1
PRINT #1, nbr2
CLOSE #1
Again you can read the contents of the file using the LINE INPUT command but then you would need to
convert the text to a number using VAL(). For example:
OPEN "numbers.txt" FOR OUTPUT AS #1
LINE INPUT #1, a$
LINE INPUT #1, b$
CLOSE #1
x = VAL(a$) : y = VAL(b$)

Shouldn't the second open command be for INPUT?
  Quote  OPEN "numbers.txt" FOR INPUT AS #1

Paul in NY
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9751
Posted: 08:29am 04 Jul 2018
Copy link to clipboard 
Print this post

Yes, I think so. Well spotted. Hopefully Geoff will see this thread and edit the manual.
Smoke makes things work. When the smoke gets out, it stops!
 
Boppa
Guru

Joined: 08/11/2016
Location: Australia
Posts: 816
Posted: 09:04am 04 Jul 2018
Copy link to clipboard 
Print this post

I've dropped him an email before about mistakes at the email on his website
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3308
Posted: 09:41am 04 Jul 2018
Copy link to clipboard 
Print this post

Thanks, well spotted. The Micromite Plus manual suffers from the same error.
I will update them for V5.04.09 (due out soon).
Geoff Graham - http://geoffg.net
 
Paul_L
Guru

Joined: 03/03/2016
Location: United States
Posts: 769
Posted: 09:58am 04 Jul 2018
Copy link to clipboard 
Print this post

@geoffg - I figured that it would be replicated in most manuals. Thanks for replying.
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025