here is my code ,I am attemp to split the file into no of topics in the file.so I dont know how many files are there.I found that algorithm for finding no of topics in the file.My problem is after finding out no of topics in the file,I need to split topic wise,so file file pointer moving is the problem.suppose I comparing the string "TTTTT" it tells topic starting string in the file.Pleasse suggest me regarding this.

Thanks in advance