Skip to content

Reading file contents into a variable #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wbuchanan opened this issue Jan 16, 2016 · 1 comment
Open

Reading file contents into a variable #1

wbuchanan opened this issue Jan 16, 2016 · 1 comment

Comments

@wbuchanan
Copy link

See help fileread(). If you needed to store file contents (e.g., to hash the version or something like that) you would create a strL variable qui: g strL files = "" and could then populate individual records like qui: replace files = fileread("filepath'/thefile'"') in 1`.

@coderigo
Copy link
Owner

Thanks @wbuchanan. I haven't used Stata for quite some time now so haven't followed this. In fact, I don't have access to a Stata installation anymore. Not sure if this is a bug or an enhancement suggestion. I suspect the latter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants