Forum

Is there a way to save string Spreads as txt files or equivalent for quick loading later?


#1

Is there a way to save string Spreads as txt files or equivalent for quick loading later?


#2

So that I could load up a single text file then it would fill out an IOBox(string) with its contents.


#3

hei again,

please try this: strings#plain text


#4

Thanks again.

I tried using the Reader node and for a second I had it working, but now it has stopped.

IOBox(String) into filename of Reader, Index set to 0, counter set to ~60 just so the whole file name gets covered, Bang into Read of Reader, another IOBox coming out from the Content pin. The txt file saved in UTF-8 format and the reader set to read that. As I said it worked for a moment and now it doesnt.

Strangely, when it was working and I tried to modify the txt file it would say I couldnt save it because VVVV was using it, but now it doesn’t seem to care. Like VVVV has just stopped interacting with the file or something altogether. I even restarted my computer.

Any help would be appreciated, sorry if I’m being a pain.


#5

just upload a simple patch that demonstrates your problem. or first compare your patch to the helppatches of the Reader/Writer…


#6

Nevermind, it just started working again after I quit and restarted VVVV a few times…


#7

I am still damn new to this, but i think that finding out how to do this will be a massive help for me as I go along. attached is the simple patch that I have so far -

At the moment I have 3 lines in the file, and I want each line to be put into a separate slice of the spread down below. But at the moment all I seem to be able to do is either have it repeat like this or if I set the boolean of the toggle line wise pin (hidden) to 1 then it puts the rest of the lines there, but one after the other in the same slice.

the txt file is UTF-8 encoded if you want to put your own file in there. any help is really appreciated.


#8

… no text …

How to divide into individual lines in a spread.v4p (5.1 kB)


#9

It is pretty much exactly the same as the Reader helppatch, only difference is the bang and the encoding so that it will read txt files.


#10

two things:

  • do you have a good reason to use the advanced reader? if not use Reader (String)
  • have a look at the helppatch of Separate (String) which will teach you how to split a string into individual slices

#11

thank you! life saver


#12

That did it. you are now my favourite vvvv person.