Split is not a static function.
What you should be doing is :
string[] line = myContents[z].Split('\t');
Note the single quotes around the \t. This indicates a char, rather than a
string.
--
Ged Moretta
www.appsense.com
-----------------------------------------------------------------------
This signature isn't automatic. I have to type it manually every time.
"bobby" <bo***@discussions.microsoft.comwrote in message
news:D8**********************************@microsof t.com...
>I have the following code and I am trying to read tab dilemited file. But
it
gives me the following error
The best overload method match for String.Split(params char[]) has some
Invalid arguments.
Even in intelligence I can't see split method.
string[] myContents = ReadFileLines(path);
for (int z = 0; z < myContents.Length; z++)
{
string[] line = String.Split(myContents[z],"\t");