Click here to Skip to main content
13,408,987 members (44,462 online)
Rate this:
Please Sign up or sign in to vote.
See more:
How to create .dat file in C#?
Posted 17-Dec-12 17:07pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

There is no such thing as ".dat file", more exactly, it can be anything. Accordingly, it can be created in a number of way. The question per se makes little to no sense.
You should understand that file names do not matter much, even though some conventions on the name pattern exist and "file types" are registered in the system registry and associated with certain application to handle them. There is no other meaning associated to file name patterns.

To work with files in .NET, use System.IO:[^].

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

you can create any file you like, using the file stream classes. If your file has a specific format, you need to look for a library that creates it for you, or learn how to create files in that format.

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

Advertise | Privacy |
Web04 | 2.8.180221.1 | Last Updated 17 Dec 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100