Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: read text file with multiple spaces


From   Yu Zhang <[email protected]>
To   [email protected]
Subject   st: read text file with multiple spaces
Date   Thu, 18 Aug 2005 19:35:32 -0700 (PDT)

It's a shame to ask, but does anyone know how to read
data (text file) with multiple spaces between
variables?  The number of spaces may vary, so I cannot
use:

. insheet using file, delim(" ")

The only way I figured out is to count the number of
variables first (e.g., using Perl) and then use:

. infile var1-var# using file

Is there a more direct way?  Thanks!

btw, I am using Stata 8.2.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index