Monday, 12 August 2019

ArrayList can accept instances of any class or value type

Using File Stream Class is very similar to using File.Open() method.

The instance of File Stream Class will be exactly the same.


• In our case, we are placing data from XML back into the list
• It is good to specify the settings when you read so that
the comments and whitespaces are not recognized
• In the reading process, we go straight to the first element and keep reading until all tourists are gone
• The last thing to do is to close
the reader



FileStream fs = new FileStream("text.xml")

No comments:

Post a Comment