return value for WriteData() and other write commands

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Lebostein
Addict
Addict
Posts: 826
Joined: Fri Jun 11, 2004 7:07 am

return value for WriteData() and other write commands

Post by Lebostein »

For example: I can't check the success of execution of WriteData() when my harddisk is full... I have no problem to create a file, when I have few free bytes on my disk. But when I write ab big memory block in this file I have a problem...
horst
Enthusiast
Enthusiast
Posts: 197
Joined: Wed May 28, 2003 6:57 am
Location: Munich
Contact:

Re: return value for WriteData() and other write commands

Post by horst »

Lebostein wrote:For example: I can't check the success of execution of WriteData() when my harddisk is full...
Actually, the function should return the number of bytes written (which can be part of the total size to write).
Horst.
Lebostein
Addict
Addict
Posts: 826
Joined: Fri Jun 11, 2004 7:07 am

Post by Lebostein »

In 3.94b the function retruns 0 or 1. It's a random number? It means false or true? It's the number of written bytes? Please update the documentation!!!
Post Reply