If I have a string, how can I treat it like an IO? I have a method that takes an IO and I want to pass a string to it, if at the very least for testing.
IOBuffer() function. It should do exactly what you need.
That’s the ticket. Thanks!
@trans Please mark the reply as solving the problem next time, it’s useful for people to know whether a question still needs an answer. Thanks!
Didn’t know about that. Okay.