Hi Priya,
Let me understand ur problem. You have Data,for example - Name1,Rollno,marks1,mark2,total,Name2,Rollno,marks1,mark2,total,Name3,Rollno,marks1,mark2,total,Name4,Rollno,marks1,mark2,total,Name5, Rollno,marks1,mark2,total,...etc.
Now u want it in Field seperated right.
If this is your problem
then all u need to do is to Know the field repeatation. and Do not write the Comma while writing in the second file when the record ends. like this
Name1,Rollno,marks1,mark2,total
Name2,Rollno,marks1,mark2,total
Note that there is no Coma after total but a \n
Such a file if u open in Excell it will show you the Data in Rows and columns.
Relacing Comma with the Tabs will not help. U need the \n for the Record seperator.
If needed I can provide the code snippet if that is the problem .
SC.
Enter your message below
Sign in or Join us (it's free).