| Author |
Message |
efan41
|
Posted: Mon Nov 23, 2009 2:58 pm Post subject: Re: How to edit files that you open onto a turing run window (text files) |
|
|
| By the way it's a EOF attempted on incompatible stream number 3, not a Get attempted... lol |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
belarussian
|
Posted: Mon Nov 23, 2009 9:02 pm Post subject: RE:How to edit files that you open onto a turing run window (text files) |
|
|
| ok look you have to change thge text in the file its self and just add the file into turing thats it easy |
|
|
|
|
 |
belarussian
|
Posted: Mon Nov 23, 2009 9:03 pm Post subject: RE:How to edit files that you open onto a turing run window (text files) |
|
|
| and if you need to include a turing file look at something like "include" |
|
|
|
|
 |
efan41
|
Posted: Tue Nov 24, 2009 2:03 pm Post subject: Re: How to edit files that you open onto a turing run window (text files) |
|
|
I don't understand.. What exactly do you mean I have to change the text in the file itself, please be more specific.. |
|
|
|
|
 |
efan41
|
Posted: Tue Nov 24, 2009 2:59 pm Post subject: Re: How to edit files that you open onto a turing run window (text files) |
|
|
And btw Superskull I noticed that if I load a file with my program (I can do that now ), I can save without getting the EOF attempted on incompatible stream number 3 error.. ? I don't know if that'll help but I figured I might point it out. |
|
|
|
|
 |
Superskull85
|
Posted: Tue Nov 24, 2009 6:15 pm Post subject: RE:How to edit files that you open onto a turing run window (text files) |
|
|
What belarussian is trying to say is that if you change the contents of a file, and than load that file in, the contents on the screen will change. However, what you are doing is getting input from the user and outputting it to the screen (also some saving and loading, but that is a little different than what he mentioned).
I got your PM, but I don't have a lot of time to go over it right now. Probably tomorrow though. If you give me a date that you need the program done by I can do my best to help you out by then.  |
|
|
|
|
 |
efan41
|
Posted: Wed Nov 25, 2009 2:01 pm Post subject: Re: How to edit files that you open onto a turing run window (text files) |
|
|
| Project is due in less than a month, the 19th of december I believe... |
|
|
|
|
 |
efan41
|
Posted: Fri Dec 04, 2009 2:43 pm Post subject: Re: How to edit files that you open onto a turing run window (text files) |
|
|
lol yeah btw I just remembered that my backspace isn't working. I'm trying to use something like this:
| code: |
number_of_keys_hit:= number_of_keys_hit- 1
My_array (number_of_keys_hit) := My_array (number_of_keys_hit) (1..*1)
|
Which is what Superskull suggested, but it won't erase the letter from the screen, although it seems to be erasing the last key hit from My_array (number_of_keys_hit)'s memory, which is good. Any thoughts? |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Superskull85
|
Posted: Fri Dec 04, 2009 7:33 pm Post subject: RE:How to edit files that you open onto a turing run window (text files) |
|
|
Well the problem is that with your current code you are never outputting the text every iteration of a loop. Instead you are outputting the character when the key is pressed. What you want to do is to somehow integrate this code:
| Turing: | for i : 1 .. t - 1
put character (t)
end for |
So that it is continuously called and updating the screen. I can't see any immediate solution, and I'm afraid I won't have anymore time to help you before your due date, but hopefully you are able to finish.  |
|
|
|
|
 |
|