Saving and reading formated data into a file

Qualm's icon

Hello.

I want to do a quite simple thing but it´s hard to explaine because i'm new to max msp.

1 I have 10 sliders i my patch
2 When i press a button, i want to put every data from each slider into a text file.
3 when a press another button, i want to read the text file and set everey slider in position based on the data in the textfile

4 to make this a little more complicated, i want to store different lines in the textfile, and read specific lines
into my sliders.

The purpose of this is going to be a sequencelist/cuelist saved and read in a file.

Thanks / Fredrik

Qualm's icon

I have done an example while using textedit.

How can i put the data from the sliders to different rows?

Max Patch
Copy patch and select New From Clipboard in Max.

Qualm's icon

Okej, i have now discovered that you can read a specefic line from "TEXT", but how do you write to a specefic line?

Qualm's icon

Please help =)

Qualm's icon

Hi i think i solved it by my self.

The answer was the object "coll". Now, i will try to save coll-info to a txt-file. and i guess that is easy.

Thanks anyway.