The c# tag on Documentation (not including the .net tag) has seven separate topics that all attempt to explain streams. Three of them have the exact same name (with different contents), most of them duplicate information, and I personally believe that they are mostly low-quality. How should these be handled? And should this information be removed from c# and instead maintained in .net?
https://stackoverflow.com/documentation/c%23/4266/file-and-stream-i-o
This one is mostly about non-stream I/O, but streams are still mentioned. This might be a good candidate to have other examples moved into.
https://stackoverflow.com/documentation/c%23/4265/file-and-stream-i-o
Two of the examples are about other classes, but one of them (the largest) is about streams. The points made about streams are good points; the example shows how to read a large file line-by-line without loading it into memory all at once.
https://stackoverflow.com/documentation/c%23/4324/file-and-stream-i-o
This one has the same information -- more or less -- about the basic usage of streams as the other ones. It also has an example that makes the same good points as mentioned in the previous description. This topic includes a syntax section which is good, but that syntax list also mentions some completely random classes (starting Process
es is not file I/O in my mind). Also, the "Parameters" section has content, but that content doesn't list parameters.
https://stackoverflow.com/documentation/c%23/3089/streamwriter-write-text-to-a-file
This topic focuses on the StreamWriter
class. There is very little explanation and I don't think the topic should be standalone. Again, mostly duped information.
https://stackoverflow.com/documentation/c%23/3670/file-i-o
https://stackoverflow.com/documentation/c%23/3598/reading-and-writing-to-files (exact duplicates)
Very similar to the second link. More duplicated information on streams.
https://stackoverflow.com/documentation/c%23/2632/i-o-classes
Called "I/O classes" but just includes an example for FileStream
. The example is unclear and confusing.
https://stackoverflow.com/documentation/c%23/3114/stream
The singular example here is actually pretty nice, but it should probably be broken into smaller separated examples. Also, the name is not very helpful.