S
sahel
Hi all;
I wrote a program that it must create a file & it doesn’t has error
but at its runtime it has this error
Unhandled exception :system. Index out of range exception :index was
outside the bounds of the array
using System;
using System.IO;
namespace ConsoleApplication85
{
class Program
{
static void Main(string[] args)
{
StreamWriter myfile = File.CreateText(args[0]);
myfile.WriteLine("*********");
myfile.Close();
Console.WriteLine("****");
}
}
}
I wrote a program that it must create a file & it doesn’t has error
but at its runtime it has this error
Unhandled exception :system. Index out of range exception :index was
outside the bounds of the array
using System;
using System.IO;
namespace ConsoleApplication85
{
class Program
{
static void Main(string[] args)
{
StreamWriter myfile = File.CreateText(args[0]);
myfile.WriteLine("*********");
myfile.Close();
Console.WriteLine("****");
}
}
}