Skip to content
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

Write to a specific location in a file? #132

Open
Kinnardian opened this issue Nov 25, 2018 · 1 comment
Open

Write to a specific location in a file? #132

Kinnardian opened this issue Nov 25, 2018 · 1 comment

Comments

@Kinnardian
Copy link
Contributor

Arc has w/outfile and w/appendfile. Shouldn't there be a way to write to an arbitrary location in a file(insert?)? For example if I had a file that was a table of tables and I wanted to add a key/value to a specific table or edit the value of a certain key I'd have to read in the whole file and write out a whole new file with the change, no? That seems inefficient.

@akkartik
Copy link
Member

That's just the nature of files on modern operating systems. They let you seek to a point in the file, but any writes there will over-write existing data. So you would have to write from that point to end of file, in practice.

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