Report as inappropriate.
This scenario is a demonstration of how to read the contents of a file in your scenario.
All the code is in the 'ReaderWorld' class. It's reasonably straightforward, though does need to use exception handling which is a more advanced topic.
Please note, this scenario doesn't do anything when you run it. When it starts, it reads the contents of the 'content/story.txt' file within the scenario, and displays the first five lines of text in that file.
Want to leave a comment? You must first log in.
2012/6/5
2012/6/5
2012/6/6
2012/6/7
2012/7/6
2012/7/6
2012/7/6