Click here to Skip to main content
15,171,576 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
please help me
give me simple example how read ,write and update form file type ".dat".
Lakamraju Raghuram 22-Apr-12 14:28pm
what exactly you want to write/read in a .dat file.
Understand that .dat can be used for dumping any information, text or binary or what ever
Sandeep Mewara 23-Apr-12 2:50am
This is not a well framed question! Please elaborate and be specific on what you have tried and stuck on.
Use the "Improve question" link to edit your question and provide better information.

1 solution

A DAT file is most times a binary file. So you should try to read it as such:

Reading and Writing Binary Files[^]

The other option is that the *.DAT extension is used instead of a proper extension.
So if binary reading does not work you should try to read it as a text file or even a picture (JPG).

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

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