its gud that scratch 1.4 has ask and answer feature similar to scanf in C.
I love scratch with file handling features like
1)Creating a text file and storing data in it.
2) Retrieving data from a text file.
By this may be we can use scratch with other languages like C, C++, PHP for example to save the HIGH SCORES of a game etc.
Offline
And it seems possible to.
Dun dun dun... reaching back into an oldie's memory... http://www.chirp.scratchr.org/blog/?p=16 This is a mod of Scratch 1.2.1 that has a beta-list function with the ability to save lists as text files and import lists as text files.
Offline
^ For anyone who needs to know, the .lst (which is just a renamed .txt) saves to /bin in that environment, but in the Scratch directory if it was being installed, not extracted.
Offline
^ Wait, it's not a renamed txt file, my bad.
Offline
yes this is working
the .lst file doesnt store in text format
i hope this feature comes in the next version of scratch.
so we can also store data files for persistence even in Scratch webpage
Offline
BTW, that Scratch 1.2 mod has one problem. You can't print/say lists as a whole, only as one item at a time. And there's no join[][] block because it's 1.2.
Offline
Hi I have downloaded this list mod of scratch and have managed to share the folder bin\ on a http:// server. I can now access it anywere! Is there a way I can get scratch to read a file from the http:// server?
Offline
well a hidden feature called write project summery as txt could could help design the first feature and an open/ close dialog for the 2nd, but its not as easy as that!
Offline
I am not sure if people want other peoples' programs to generate .txt files on their pc. I think cookies would be a better idea.
Offline
archmage wrote:
I am not sure if people want other peoples' programs to generate .txt files on their pc. I think cookies would be a better idea.
Good point. Maybe the project would have to ask permission before writing?
Offline
Harakou wrote:
archmage wrote:
I am not sure if people want other peoples' programs to generate .txt files on their pc. I think cookies would be a better idea.
Good point. Maybe the project would have to ask permission before writing?
That would make sense. And maybe just show what the TXT file would like like, how large it is, etc. I know this topic is pretty old, but Lucario621 and I had a discussion about this a few days ago which lead to some pretty interesting ideas, notably, files that are only executable by Scratch projects that would act the same online as offline, and would even preserve your data between online -> offline usage.
It's funny how in the real world we don't have problems like this, people are pretty much fine with whatever any program will write on the computer. But when Scratch comes along, people think the projects are out to take over there computer. Probably because Scratch is available to people who both are and aren't dedicated to programming, whereas most programming languages are for people who are really serious about the programs they write.
Offline
It's been done in Panther. Sorry to raise this old topic.
Offline