CodePudding user response:
class Program
{
Public static DictionaryOpenWith=new Dictionary (a);
Public static void a Write (string path)
{
FileStream writer=new FileStream (path, FileMode. Create);
UTF8Encoding temp and=new UTF8Encoding (); and
For (int I=0; I & lt; OpenWith. Count; I++)
{
Writer. Write (temp. GetBytes (openWith [i++]));
}
}
Public static void Read (string path)
{
FileStream reader=new FileStream (path, FileMode. Open);
Byte [] b=new byte [1024 * 32];
UTF8Encoding temp and=new UTF8Encoding (); and
Int I=0;
While (reader. Read (b, 0, b.L ength) & gt; 0)
{
OpenWith. Add (i++, temp. Get string (b));
}
}
Public static void Main ()
{
String path=@ "D: \ 1. Mp4";
Read (path);
Write (@ "E: \ Desktop \ tt mp4");
}
}
This is my code, write after missing a lot of things