| From | David Kantor <[email protected]> |
| To | [email protected] |
| Subject | Re: st: RE: file write vs. display; trimming; string() |
| Date | Thu, 29 Apr 2004 12:57:19 -0400 |
At 04:23 PM 4/29/2004 +0100, Nick Cox wrote:
Try something like
tempfile foo
tempname bar
file open `bar' using `foo', write
forval i = 1/10 {
local val : di %5.0f `i'
file write `bar' _n "`val'"
}
file close `bar'
Nick
[email protected]
[...]
Thanks very much, Nick. I suspected there would be a better solution, and
that you would be the one who knew it..| © Copyright 1996–2025 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |