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 9204653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:45:40+00:00 2026-06-17T23:45:40+00:00

I am newbie in Android development and I cant know that is going with

  • 0

I am newbie in Android development and I cant know that is going with files.

That’s about audio information.

So, if I create new file and write in it, after it i read from this file.
And new iteration: I don’t create new file (cuz i already got this file), and write in this file. Now I gonna read from file (after second write) that I can get from file?

I need get second written information, can I get it on this way?

  • 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-06-17T23:45:41+00:00Added an answer on June 17, 2026 at 11:45 pm

    yes, you have read again the file
    let say you use a textfile to save your data.
    Ex.

    this is how i save it

        File temf=new File(getCacheDir()+"/data/mytext.txt");
        Writer out=null;
        if(temf.exists()){
            temf.delete();
        }
        try {
            out = new BufferedWriter(new FileWriter(temf));
            out.write("sample text") + "\r\n");
            }
            out.flush();
            out.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    

    and this is how i retrieve it

        FileInputStream fs;
        try {
            File temf=new File(getCacheDir()+"/data/mytext.txt");
            if (temf.exists()) {
                fs = new FileInputStream(temf);
                DataInputStream dis = new DataInputStream(fs);
                BufferedReader br = new BufferedReader(new InputStreamReader(
                        dis));
                String str=br.readLine();
                while(str!=null)
                {
                if(str=="text you want to compare"){
                  break;
                 }else{
                  str=br.readLine();
                 }
                }
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am newbie in Android development. Want to know about something related to my
I am a complete newbie to Android development; Basically, I am about to write
Extreme Android developer newbie here...well, new to Android development, not development in general. I
I'm a newbie in Android Development. I am trying to develop an app that
I am a newbie to android development, and would like to know if it
I am a newbie in Android app development, I tried to create a nested
I am newbie to NFC Android App Development. I am developing an App that
I am a newbie to Android development. I have two Java files in my
I am a newbie to android development. I am trying to create a List
I am a complete newbie to android development, though I know a thing or

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.