Share this post

Link to post

Share on other sites

/dev/null 1

/dev/null 1

yes. Your error check does not take care of all possible error values.

From help file: FileRead()

Return Value

Success: Returns the binary/string read.

Special: Sets @error to -1 if end-of-file is reached.

Failure: Sets @error to 1 if file not opened in read mode or other error.

Sets @error to 2 if count not defined for file open in raw read mode. <== THIS is your problem!

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *