It doesn't do what you think it does. Since SourcePawn exposes it's deep C roots, you need to use OpenFile which uses
fopen under the hood. BuildPath is needed to correctly resolve paths relative to SM directory, so first you build path and then open file with, say, "w" mode to create one.
__________________