Reverse Parse() Function


SteveMyres

Recommended Posts

I thought I remembered an "Unparse()" function, if you will, that takes an array and a delimiter and returns a delimited string (like what File.WriteDelim() does, but just for general use in a sequence, not for writing in a file), but if so, I can't find it in the user guide.

 

Easy to do with a loop, but I thought I remembered there being a native function.

Link to comment
Share on other sites

No there is not.  And I can't think of another way to do it, other than using WriteDelim() to write to a file, then reading the file back using File.Read().  This actually is probably faster than using a loop if you have a lot of items in the array.

 

PHP has such a function, which might be what you remember.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.