Re: [julia-users] Most effective way to build a large string?

2016-10-14 Thread Páll Haraldsson
On Friday, October 14, 2016 at 10:44:47 PM UTC, Páll Haraldsson wrote: > > On Friday, October 14, 2016 at 5:17:45 PM UTC, Diego Javier Zea wrote: >> >> Hi! >> I have a function that uses `IOBuffer` for this creating one `String` >> like the example. >> Is it needed or recommended `close` the

Re: [julia-users] Most effective way to build a large string?

2016-10-14 Thread Páll Haraldsson
On Friday, October 14, 2016 at 5:17:45 PM UTC, Diego Javier Zea wrote: > > Hi! > I have a function that uses `IOBuffer` for this creating one `String` like > the example. > Is it needed or recommended `close` the IOBuffer after `takebuf_string`? > I find it unlikely. help?> takebuf_string

Re: [julia-users] Most effective way to build a large string?

2016-10-14 Thread Diego Javier Zea
Hi! I have a function that uses `IOBuffer` for this creating one `String` like the example. Is it needed or recommended `close` the IOBuffer after `takebuf_string`? Best! On Tuesday, February 17, 2015 at 1:47:08 PM UTC-3, Stefan Karpinski wrote: > > IOBuffer is what you're looking for: > > buf

Re: [julia-users] Most effective way to build a large string?

2015-02-19 Thread David P. Sanders
El martes, 17 de febrero de 2015, 10:47:08 (UTC-6), Stefan Karpinski escribió: IOBuffer is what you're looking for: buf = IOBuffer() for i = 1:100 println(buf, i) end takebuf_string(buf) # = returns everything that's been written to buf. The takebuf_string function really needs a

Re: [julia-users] Most effective way to build a large string?

2015-02-18 Thread Maurice Diamantini
Thank you very much Stefan, and sorry I reposted this question one hour later ! My reply is on this other thread: https://groups.google.com/forum/?fromgroups=#!topic/julia-users/3OEH-m3EKco%5B1-25-false%5D -- Maurice

Re: [julia-users] Most effective way to build a large string?

2015-02-17 Thread Stefan Karpinski
IOBuffer is what you're looking for: buf = IOBuffer() for i = 1:100 println(buf, i) end takebuf_string(buf) # = returns everything that's been written to buf. The takebuf_string function really needs a new name. On Tue, Feb 17, 2015 at 9:06 AM, Maurice Diamantini