log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- Latest hardware upgrade from RISCOSbits (News:)
- RISCOSbits releases a new laptop solution (News:4)
- Announcing the TIB 2024 Advent Calendar (News:2)
- RISC OS London Show Report 2024 (News:1)
- Code GCC produces that makes you cry #12684 (Prog:39)
- Rougol November 2024 meeting on monday (News:)
- Drag'n'Drop 14i1 edition reviewed (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:2)
- October 2024 News Summary (News:3)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
Acorn Arcade forums: Programming: Opening a text file
 
  Opening a text file
  Revin Kevin (19:39 4/2/2004)
  Phlamethrower (19:51 4/2/2004)
    Revin Kevin (20:18 4/2/2004)
 
Kevin Wells Message #50731, posted by Revin Kevin at 19:39, 4/2/2004
Member
Posts: 644
How do you in BASIC open a text file so it displays in a text editor?

I want to improve my lottery checker programe so that some one only needs to hit he edit button and the number file loads into a text editor.

Thanks.
________
I did not do it.
  ^[ Log in to reply ]
 
Jeffrey Lee Message #50732, posted by Phlamethrower at 19:51, 4/2/2004, in reply to message #50731
PhlamethrowerHot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot stuff

Posts: 15100
If you're doing it from the WIMP, you'll need to call Wimp_StartTask. E.g.:

SYS "Wimp_StartTask","Run "+file$

This ensures that the text editor is started as a seperate task, so your program keeps running.
  ^[ Log in to reply ]
 
Kevin Wells Message #50738, posted by Revin Kevin at 20:18, 4/2/2004, in reply to message #50732
Member
Posts: 644
Thanks.

IT works.
________
I did not do it.
  ^[ Log in to reply ]
 

Acorn Arcade forums: Programming: Opening a text file