Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 simple database help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
kanye_west_owns




PostPosted: Tue May 11, 2004 4:39 pm   Post subject: simple database help

how can i make a simple database, by just asking a question the user inputs it, and then it saves it to the same file, so the user can actually come back and the information will still be there even if the program was restarted... i need lots of help Very Happy
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Tue May 11, 2004 4:59 pm   Post subject: (No subject)

well if you simply want to write down some values to use later on... simple file i/o will do fine. It gets a bit more complicated if you want to write down records Confused
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
kanye_west_owns




PostPosted: Tue May 11, 2004 5:29 pm   Post subject: (No subject)

but if i do it this way, itll delete everything in my file, i want it to be in the same file, and to run along side the other codes.
Tony




PostPosted: Tue May 11, 2004 5:37 pm   Post subject: (No subject)

Confused
not if you skip to the end of the file Thinking
Turing Documentation wrote:

var streamnumber : int
open : streamnumber, "myfile", put, mod, seek
seek : streamnumber, *
put : streamnumber, "This appears at the end of the file"
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
kanye_west_owns




PostPosted: Tue May 11, 2004 6:47 pm   Post subject: (No subject)

GOD DAMN, its too hard to do this... Twisted Evil Evil or Very Mad Embarassed Crying or Very sad
TheFerret




PostPosted: Tue May 11, 2004 9:57 pm   Post subject: (No subject)

You could try reading the file at teh beginning and put the data into an array and read the stuff from there...

P.S. There is harder things to do in Turing, such as making a 3-D Triangle spin that has coloured faces...
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: