On 22 Mar 2006, at 20:53, Dilwyn Jones wrote:

>
> 10 CLS : CLS #0
> 100 OPEN_NEW #3,ram1_test_txt:PRINT #3,FILL$('.',256):CLOSE #3 : REM
> create test file
> 110 OPEN_IN #3,ram1_test_txt
> 120 INPUT #3,t$ : PRINT t$
> 130 CLOSE #3
>

If you:

1. set ram1_test_txt as 'ram1_test_txt'
2. add 140 SUSPEND_TASK 200 (to stop the printing immediately  
disappearing)
3. Compile this with TURBO

you will find that 100 full stops are printed (since t$ is  
automatically dimensioned to 100). There is no buffer overflow  
problem. Of course this is TURBO not Qlib. You can get all 256 full  
stops printed if you set DIM t$(x), where x>255.

George
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to