Here is the sample dataset. Here the problem is the seperator is :: but inbetween the movie name there is : so I am getting problem with this.
Please help me out.

Here is the sample dataset. Here the problem is the seperator is :: but inbetween the movie name there is : so I am getting problem with this.
Please help me out.

 
    
     
    
    You could try to do the following:
require(data.table)
input <- data.table(do.call(rbind,strsplit(readLines('file.txt'),'::' )))
input[, c("V3", "V4", "V5") := tstrsplit(V3, split = "|", fixed = T)]
The first line reads your file ("file.txt" should be substituted with your file name) using the :: as a separator. The second line splits the 1 column that contains all the classifications into 3 separate columns.