0

I am studying File Input/Output, and I found that Java can read and write .dat class files. What is a .dat file? I know that Java can read .txt files, so is it similar or the same? What is the use of .dat files?

Chris Forrence
  • 10,042
  • 11
  • 48
  • 64
isslam akkilah
  • 418
  • 1
  • 11
  • 23

2 Answers2

3

.dat file is basically a file that contains data. Many programs use .dat format to store data. There is no way to tell what kind of data the file contains unless you open it. Also, you can never know how to read it unless you know what kind of data is present in it.

Adarsh
  • 3,613
  • 2
  • 21
  • 37
1

It is just a data file, no standards are defined. It can be character data, byte stream. eg. GOM video player tries to interpret .dat as byte stream. but u can also create a character stream, rite to file with extension .dat. GOM player just says unable to read.

harshal
  • 592
  • 6
  • 25