c#中java BufferedReader的等价物是什么?

时间:2012-10-14 07:50:52

标签: c# windows-phone-7 bufferedreader bufferedwriter

  

可能重复:
  .NET equivalent of Java’s BufferedReader

这是我在Java中的代码。我想将它转换为c#。你能帮我吗?

BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(connect.getOutputStream()));
writer.write("username=0920307&password=85181395&submit=Login");
writer.close();
BufferedReader reader = new BufferedReader(new InputStreamReader(connect.getInputStream()));

1 个答案:

答案 0 :(得分:4)

与Java的Buffered Writer等效的C#是StreamWriter。

祝你的项目好运。