I am trying to split a file into 2 parts.
File format is following: filename_status_date.filetype
and the files are:
I need to split so that first part carries "apple_india"
and second part carries the "20110301112444.txt".
I tried the following:
But that splits the file right after the first "_" as
$fruit = apple
$end = india
How can I make it work. My arguments in Split() is wrong.