How to read .DAT file in R

Does anyone know how to read .DAT file in R? I have a .DAT file and I need to read it.

The .DAT extension is pretty generic. What program created the file?

Have you tried this --- read.delim("filename.dat", sep=" ")