Area: Quik_Bas Msg: #16 Date: 03-25-92 00:26 (Public) From: Steve Halko To: Bill Beeler Subject: Qlb
BB>In a message to Bob Sewell <21 Mar 92 03:29> Michael Orchekowski wrote: BB> >BS>undesired carriage return/line feed. The following BB> >BS>is off the top of my BB> >BS>head, so if it doesn't work right, fiddle with it until it does. BB> >BS> OPEN "cons" FOR OUTPUT AS #1 'opens the screen as a file BB> >BS> OPEN "ansifile.ans" FOR INPUT AS #2 'open your ansi file BB> >BS> WHILE NOT EOF(2) 'perform BB> >BS> loop until end of file BB> >BS> LINE INPUT #2, a$ 'get a complete ANSI line BB> >BS> PRINT #1, a$; 'put tha line on the screen BB> >BS> WEND BB> >BS> CLOSE BB> MO> Should be 'OPEN "CON:" FOR OUTPUT AS #1', otherwise it will open the BB> MO> disk file named "CONS". A distinct difference. MPO. BB>QB has had, as long as I can remember, the CONS option. Not quite - the name of the device is not CONS it is CONS: So the proper way to OPEN the console is : OPEN "CONS:" FOR OUTPUT AS #1 * SLMR 2.1a * A cynic smells flowers & looks for the casket --- DB B1062/002487 * Origin: Gulf Coast BBS -QuickSHARE #2- (904)563-2547 HST/V.32bis (1:365/12)
Books at Amazon:
Back to BASIC: The History, Corruption, and Future of the Language
Hackers: Heroes of the Computer Revolution (including Tiny BASIC)
Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution
The Advent of the Algorithm: The Idea that Rules the World
Moths in the Machine: The Power and Perils of Programming
Mastering Visual Basic .NET