error on line 32:
or' operator : expression or expression.expression' could be a variable, a return from a function or `expresion operator expresion'
`return' is a statement, not a function
so, you should use:
if (!expresion)
return something;
error on line 22:
show us the piece of code where you call that function... probably you miss a param
error on line 23:
is better to use an absolute path, something like: "/path/to/file.txt"
PM