Your syntax of creating arrays is wrong. You have to use
[]
, not
()
:
string[] createText = { "Hello", "Reading and writing text file" };
Also, it appears that you are putting methods directly in a namespace. You cannot do that; methods have to be put in a class. I suppose you meant to put them in the class of your web form (looking at your
using
namespaces it appears that you use web forms).