RSS Amplifier

Recent Questions - Software Engineering Stack Exchange · Apr 29, 2014

Why can we not insert into files without the additional writes? (I neither mean append, nor over-write)

0
Sign in to vote or save

This page did not load. You can still read it on the original site — the toolbar below keeps your place in the directory.

This occurs as a programming language independent problem to me. I have a file with the content aaabddd When I want to insert C behind b then my code needs to rewrite ddd to get aaabCddd Why can I not just insert C at this position? I can not do this in Java, Python, ... . I can not do this in Linux, Windows, ... . Am I right? I do not understand why C can't simply be inserted without the…

This occurs as a programming language independent problem to me.

I have a file with the content

aaabddd

When I want to insert C behind b then my code needs to rewrite ddd to get

aaabCddd

Why can I not just insert C at this position?

I can not do this in Java, Python, ... . I can not do this in Linux, Windows, ... . Am I right?

I do not understand why C can't simply be inserted without the additional writes. Would someone please explain why this is so?

Read on softwareengineering.stackexchange.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.