
-----------------------------------
cavetroll
Tue Dec 12, 2006 3:37 pm

Opening/editing files
-----------------------------------
I am working on a program that needs a high score list. I am wondering how to open a file so it can be viewed and how to get an integer value from the document. Any help would be greatly appreciated.

-----------------------------------
Clayton
Tue Dec 12, 2006 3:48 pm


-----------------------------------
First of all, Welcome to CompSci!

Second of all, this question has been answered many times. Make use of the search feature at the top of the forum. Or look through the forums manually, also, take a look through the Turing Walkthrough for a number of other tutorials here.

-----------------------------------
Cervantes
Tue Dec 12, 2006 5:10 pm


-----------------------------------
Please post these topics in [Turing Help]. This is not a tutorial.

First, check out the Turing Walkthrough, as Freakman stated, and read the tutorial on File Input/Output. Then, search the tutorial section for highscrores. Looky what I found by searching:
http://www.compsci.ca/v2/viewtopic.php?t=5340
http://www.compsci.ca/v2/viewtopic.php?t=11079
http://www.compsci.ca/v2/viewtopic.php?t=7499
http://www.compsci.ca/v2/viewtopic.php?t=10800

-----------------------------------
[Gandalf]
Tue Dec 12, 2006 8:05 pm


-----------------------------------
Also, you might want to take a look at my [url=http://www.compsci.ca/v2/viewtopic.php?p=111955]High Scores Class to see how it would be done in a OOP fashion once you understand the basics[/plug]. :)
