I am trying to read a file in binary and create a file of the same format with that binary, this file can be in any commom format like (.docx, .txt, .jpeg, .png )
etc.
I created a text file (test.txt)
that has a string This is a text string
written in it.
string file = "filelocation"; //this has a file location
byte[] data = File.ReadAllBytes(fileWithExt); // this gives me binary data.....
Now how do i create a file of the same extension with the binary data. ?