How to read .dat file?

I need to read the .dat file and apply filter on the data . Is there any activity we can use for this?

There is no activity for reading dat files. Try with the following code (assign activities) if you can able to read the dat file.

      String objectToSerialize;
      Stream stream = File.Open(filename, FileMode.Open);
      BinaryFormatter bFormatter = new BinaryFormatter();
      objectToSerialize = bFormatter.Deserialize(stream);
      stream.Close();
      return objectToSerialize;

@AkankshaP

Try like this, Iam not sure Whether it will work or not.
Try to change the .dat file to text file by using Move File Activity.
Then Use Read Text Activity.

Regards,
Mahesh

Thanks guys for your help !!