Click here to Skip to main content
16,009,068 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Every One i wanted to convert DAT file to csv.Please help
Posted
Comments
Richard MacCutchan 21-Dec-13 4:43am    
Assuming that you know the format of the DAT file, then you just need to read each record, reformat it into a comma separated string and write it to a new file. Maybe it would help if you explained exactly what your difficulty is.

1 solution

depends on the field separator that is used in your dat file...

1.read your file as a string
2.replace the field separator with a comma and
3.save the string as .csv file
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900