Computer Science Canada

Give me your idea if this is possible ....

Author:  SamSimp [ 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

Author:  Tony [ 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

Author:  SamSimp [ 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

Author:  StealthArcher [ 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....

Author:  Tony [ 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

Author:  SamSimp [ 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

Author:  octopi [ 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.


: