I need to read data from a text file line by line. Each line contains either a string or an integer. I want to use StreamReader to read line by line from the text file and StreamWriter to write it to a binary file. The "write to binary file" part will be easy. The "read from text file line by line" part is the part I need help with.
相关问题
- What is the best way to do a search in a large fil
- React Native Inline style for multiple Text in sin
- Spring Integration - Inbound file endpoint. How to
- php--glob for searching directories and .jpg only
- How to change the first two uppercase characters o
相关文章
- 放在input的text下文本一直出现一个/(即使还没输入任何值)是什么情况
- What is the correct way to declare and use a FILE
- Making new files automatically executable?
- How to serialize data into indented json [duplicat
- Creating a custom file like object python suggesti
- Rendering plain text through PHP
- Sorting a data stream before writing to file in no
- Fastest way to create files in C#
In c# you can do something like this.
It's all built into StreamReader: