Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7414603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:08:02+00:00 2026-05-29T07:08:02+00:00

There is one very nice feature in shell for example # asd > myfile.txt

  • 0

There is one very nice feature in shell

for example

# "asd" > myfile.txt

puts “asd” in myfile.txt if the file exist first it is deleted then it is created and the content is put in the file.

but if

# "asd" >> myfile.txt

and if the file exist then the “asd” will be just added to the end of the file.

well I need some EFFICIENT algorithm that do exactly this.

I have very large text file and all I want to do is to write something to the end, but it must be very efficient I do not want to waste resources on stupid things like read the whole content concatenate and write…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T07:08:03+00:00Added an answer on May 29, 2026 at 7:08 am

    I know the general concepts about files. One thing which is useful for your case is opening a file in append mode. If you open a file in append mode and trying to write data to it, it just append(adds at the end of file) the given data.

    Try to search for similar functionality in android API. This is general feature of File System. In linux also we have familiar with this type of file operations.

    I hope it may help you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with the very-useful ID3 framework in my cocoa project. There's one tiny
There is a very similar question already. One of the solutions uses code like
Network file systems are offered by Windows and (L)Unix. Is there one for IBM
There's something in my preferences file that is causing Eclipse's auto-complete feature (for Java)
I now there are very nice ways for CakePHP to do automatic validation for
I am modifying a wordpress theme completely, and have run into one very simple
Is there one method or property in the .NET Framework that tells if an
I'm looking for a standard dual-map structure - is there one implemented in std/boost/another
What is the difference between these three heavily related fields? Is there one specific
$0 is the variable for the top level Ruby program, but is there one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.