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

Username:   Password: 
 RegisterRegister   
 Give me your idea if this is possible ....
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
SamSimp




PostPosted: Sat Jan 19, 2008 5:15 pm   Post subject: Give me your idea if this is possible ....

Hi, I've been playing with Turing for a few weeks now and I like coding the texts in so it made me interested in it. But I have a few questions before I dig to the dipper level.

I want to index my works, like if I done something then I type it in and Turing will save it in a file without creating a nother file if it's existed! just write below the older one etc.

For example,

I already typed in "Lesson 4.5 project = DONE" and beside that it will say "Date: Jan 10th 08" etc and it will save to a text file or something that I can view when ever I want and I can edit it with Turing.

then I want to update the index so I type in again "Lesson 4.6 project = DONE" and Turing should put it under the "Lesson 4.5 project = DONE" and save the file again without creating another file like that.

Do you guys get what I mean? Cuz my English isn't so good. lol


Is that possible to done by Turing?

Cuz I know that the var thing and the put and get thing can ask me what to type in so I am wondering if it's possible or not.


Thanks for reading.
Sam
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Sat Jan 19, 2008 5:24 pm   Post subject: RE:Give me your idea if this is possible ....

yes, this is possible -- you have to move the pointer to the end of the file first, so that it starts writing at the end, not from the beginning. I think it might work if you simply read the entire file before writing to it. Otherwise you'd have to look into binary access and things like seek
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
SamSimp




PostPosted: Sat Jan 19, 2008 5:44 pm   Post subject: RE:Give me your idea if this is possible ....

Is there any tutorial I can read something about this? Or can someone help implement this program?

Cuz I have no clue where to start off.

Well . . all I know is the basic parts after reading all the tutorials on the forum but don't know to combine those features and add all of them. Turing is hard program but it's cool. lol


Thank for reading.
Sam
StealthArcher




PostPosted: Sat Jan 19, 2008 5:46 pm   Post subject: RE:Give me your idea if this is possible ....

O-O now let's see what all the turing users on this site say....
Tony




PostPosted: Sat Jan 19, 2008 5:53 pm   Post subject: Re: RE:Give me your idea if this is possible ....

SamSimp @ Sat Jan 19, 2008 5:44 pm wrote:
Is there any tutorial I can read something about this?

Yes - read/write to a file
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
SamSimp




PostPosted: Sat Jan 19, 2008 6:17 pm   Post subject: RE:Give me your idea if this is possible ....

What do you mean?

I have to write the date I want first? in a txt file or?


Sam
octopi




PostPosted: Sat Jan 19, 2008 8:07 pm   Post subject: Re: Give me your idea if this is possible ....

Does turing not have the ability to append to a file?

If so just use the append feature.
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  [ 7 Posts ]
Jump to:   


Style:  
Search: