Append/Prepend with no space?

Marcos's icon

Im trying to make my mp3 player dropbox accept folder drops...At the final stage of my subpatch I am taking the filepath and adding the file name to it:

C:/Test/ + test.mp3 = C:/Test/ test.mp3

That space between them is what I am trying to eliminate. I need it to be:

C:/Test/test.mp3

Roth's icon

Check out [sprintf], perfect object for formatting file paths.

Holland Hopson's icon

You might also try [combine]. I just discovered this object. I've always used [sprintf] but [combine] seems tailor-made for dealing with filepaths and filenames.

Weston Jones's icon

Chiming in on a super old thread here, hope you've all be well in the last 11 years...

I'm new to Max and having and issue formatting text with preppend/append too.

The issue is document within the below patch. Basically I don't know how to add a "\" as the very last character in a prepend object as Max keeps erasing it. Then also I need to modify an append so it erases something from the text before appending new characters.

Specific questions in my patch pasted below. Thank you!

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