Posts: 548
Threads: 67
Joined: Jun 2004
How do I peek and poke opened files? Normally peek and poke just works with computer addresses, how could I do this with the addresses in a file I OPENed? I searched for a command and couldnt find it. Thanks for help!
quote="na_th_an"]
Greenday, Spice Girls... Can you tell the difference?
[/quote]
Posts: 1,752
Threads: 21
Joined: Jun 2002
Open the file in binary mode and use GET and PUT.
Posts: 548
Threads: 67
Joined: Jun 2004
Thanks! so this will work
Code:
OPEN "file.123" for Binary as #1
GET #1
Poke &H355, 20
?
quote="na_th_an"]
Greenday, Spice Girls... Can you tell the difference?
[/quote]
Posts: 6,419
Threads: 74
Joined: Mar 2002
Forget the POKE thing. It is just GET or PUT. Take a glance here, look at the second parameter those statements get:
GET:
http://qbasicnews.com/qboho/qckadvr.gfior.shtml
PUT:
http://qbasicnews.com/qboho/qckadvr.pfior.shtml
Posts: 548
Threads: 67
Joined: Jun 2004
i think thats what i need. much appreciated.
quote="na_th_an"]
Greenday, Spice Girls... Can you tell the difference?
[/quote]