I need to extract data only file name from entire data

if u r getting ur input one by one, you can use var.split(".'c)(0)