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 |
Hot 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 |