It may help you because this solution will be the best by considering performance as well:
static void Main(string[] args)
{
string a = "L24789A-12345Ax.DAT";
string[] b = (a.Replace(".DAT", "")).Split('-');
Console.WriteLine("first = " + b[0]);
Console.WriteLine("second = " + b[1]);
Console.ReadLine();
}