Re: close(writefile)

new topic     » goto parent     » topic index » view thread      » older message » newer message
useless_ said...


So i have writefile open, and i am writing, and the debugger says writefile equals 4, and now i want to close it. So i close(writefile). The debugger says writefile is still 4. I cannot test the variable writefile in any way for being open or closed or an error. At best, i can write code to make it a sequence and subsequently test for it's lack of atom-ness.

Can we have close(writefile) change the handle writefile to zero, please?

I don't think that's a good solution. It might be better to add some functions to be able to query the back end as to the status of a particular file handle.

In the mean time, you could write some simple wrappers around open and close that keep track of which file handles are being used.

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu