This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-11-01 14:01:34

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

CYOB blocks needed!

Hi! I'm working on a program that needs to read and write to a text file, it reads item's names, quantities and descriptions and needs to be able to change the file when the quantity or other attribute of an item is changed.

Now seeing as this project is dealing with hundreds of items, it takes a very long time to copy each line of the contents file to Panther, make a change, then write the whole thing back, overwriting the old data.

The entire project would run a lot faster with two CYOB blocks that I dearly need to continue with it,

[clear line $String$ of file $String$]

and

[write $String$ to line $Number$ of file $String$]

If anyone can code those, or help code them, that would be greatly appreciated... I'd add the block to the block library too  smile


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#2 2010-11-01 17:19:05

zorket
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: CYOB blocks needed!

You can try talking about this where the smart squeakers work, like me, at Cool custom blocks in scratch


Marzipan11 must learn to not spoil

Offline

 

#3 2010-11-01 17:22:54

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: CYOB blocks needed!

zorket wrote:

You can try talking about this where the smart squeakers work, like me, at Cool custom blocks in scratch

Like you? That's definitely self-centered. Please stop acting like that.

And also, I dont think so, because it's for Scratch, not Panther!


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#4 2010-11-01 18:37:44

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: CYOB blocks needed!

I posted it as a seperate topic due to it being a specific request/question... It's for Panther, not Scratch  smile


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

Board footer