You're getting this message because your line of code contains several syntax errors, probably because you're applying your Python skills to the entirely different domain. Please refer to your C# book,
MSDN and the popular sites like
Dotnetperls or
Stackoverflow on proper syntax.
1. File.Create expects parameters to be enclosed in double quotes, not apostrophes.
2. "FileCreate" is not a valid method name.
3. File.Create is a void and does not return an integer code.
4. Also, this code needs a
using directive (using System.IO)
5.
DebugFile.txt needs to have a path defined, or you will get an insufficient file rights violation when trying to write into Wealth-Lab's main folder under Program Files (by default when no path is specified).