sorry but it still doing prob.
i have quite a lot of expiernce in vbscript/vb6/vb.net
but totally beginner to c#:
string[] strArray = new string[];
strArry = fileName.Split(".");
string fileExtension = strArry[1];
switch(fileExtension)
{
case "gif":
}