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

Username:   Password: 
 RegisterRegister   
 Insectoid's PacMan blog
Index -> Programming, Turing -> Turing Submissions
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
TheWanderer




PostPosted: Sat May 31, 2008 2:57 pm   Post subject: Re: RE:Insectoid\'s PacMan blog

insectoid @ Sat May 31, 2008 2:02 pm wrote:
so if I write back into it that way, it will erase the contents and put in the new stuff? That's what I'm after (Or just replacing...)


In short, yes.

Reason: when you open a file with

Turing:
open : filestreamnumber, filename, put


I believe it opens the file with a clean slate (blank file). the key is the "put" at the end of the line

so when you output your edited score array, it should serve the purpose.

remember to close the file the first time after you read it.
so Turing doesn't recognize it, but puts it into memory as a new file to write to.
Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: Sun Jun 01, 2008 1:31 pm   Post subject: RE:Insectoid\'s PacMan blog

Oh, well that's useful! Could also be a pain in other projects involving large files and huge amounts of data (But who's going to use turing for something like that?).

Now I just need to do a sorting algorithm (not to hard) and fix the one d*amn bug and presto! finished! A++ on my final project! (Everyone else is doing a slot machine, which I am also doing for computer engineering).
Insectoid




PostPosted: Wed Jun 04, 2008 10:00 am   Post subject: RE:Insectoid\'s PacMan blog

Right, I REALLY need the bug to be fixed. The project has been assigned now, which means I haven't got much time left (less than 10 school days left in the year...). So if ANYONE has a solution, PLEASE, TELL!

note- the bug is the whole 'sprtie was freed' thing)
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 18 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: