Recently, I learned C #, and I found some garbled problems in the file to the file to the file. Solve the following general: outfile = new streamwriter ("c: //abc.txt", false); this Outfile = New Streamwriter ("c: //abc.txt", false, encoding.getencoding ("GB2312")); Outfile.WriteLine ("Chinese"); there is no problem in outputting Chinese;