|
Pages: [1]
|
 |
|
Author
|
Topic: Buffer mystery! (Read 400 times)
|
Guest_leke
Guest
|
Regarding READ’s refinement: /direct -- Opens the port without buffering.
I kind of know that a buffer is a place a script might store data, in either memory or a temporary file whilst being written. So when I got an ‘out of memory error’ in one of my scripts, I used this refinement to solve the problem.
So if I had buffering ‘turned off’, where was the data in my script being stored? Whilst I am asking, would there be any way to count the bytes as they are being read?
Thanks.
|
|
|
|
|
Logged
|
|
|
|
|
Gregg
|
If you use /direct mode, the only place the data is buffered is in your variables (words you set, that refer to the data you've read), so you can buffer up as much data as you want, and dump it to recover memory once you're done with it.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
|
Pages: [1]
|
|
|
 |