How can i retrieve recodes in txtfile like in database

I want to store three values into textfile, every time, when i press button, i will add values into textfile, and when i add value a, i can compare the exisitng value in textifile with value a. just operating like in database.
How can i do like. is there anyone provide codes for me,

i mean that if i want to put a new value into text
file. i first check whether there is a value in the
textfile is the same with the value i put. just like
retrieve in database.Hint: RandomAccessFile

Similar Messages

  • How can I retrieve all row information from a database table.

    I have a jsp file which calls info from columns in a table. My question, is how can I edit it so that it retrieves all the rows?
    I tried using resultset SalesInfo.next() which only retrieves the last row value and resultset SalesInfo.first() which only retrieves the first row value.
    Here is my code
    public ResultSet SalesInfo;
    public void getSalesInfo()
              try
                   Statement stmt = db.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
                   SalesInfo = stmt.executeQuery("SELECT sales_id,cust_id,product_id, quantity from sales;");
                   SalesInfo.first();
                   setCartsales_id (SalesInfo.getString("sales_id"));
                   setCartcust_id (SalesInfo.getString("cust_id"));
                   setCartProduct_id(SalesInfo.getString("product_id"));
                   setCartquantity (SalesInfo.getString("quantity"));
              catch(SQLException e )
                   setCartsales_id(e.toString());
                   e.printStackTrace();
    Also I apologise for not having the proper code format as I had a problem with my keyboard.

         public class SalesDB{
        public static synchronized Vector getSalesDetail(Connection connection) throws SQLException{
            String query = "SELECT * from Sales;"
           Statement statement = connection.createStatement();
            ResultSet results = statement.executeQuery(query);
            Vector sale_details = new Vector();
            while(results.next() == true){
         SaleInfo saleInfo = new    SaleInfo(results.getString("sales_id"),results.getDouble("cust_id"),results.getString("product_id"));
                sale_details.add(saleInfo);
            results.close();
            statement.close();
            return sale_details;
    }

  • How can I retrieve values from integer array in sqlplus?

    I'm trying to write a query against OEM grid tables to come up with the result to show all scheduled backup jobs, in OEM grid, there is a table sysman.mgmt_job_schedule, one of the column DAYS is defined as TYPE SYSMAN.MGMT_JOB_INT_ARRAY AS VARRAY(5000) OF INTEGER,
    if I do select days from mgmt_job_schedule, it returns something like (2,3,4,5,,,,,,...), I want to retrieve the digits and translate them into Monday-Sunday in combination of other columns, but I'm new in varray, I don't know how can I retrieve the values in sqlplus, can you guys help me on that, My query is as follows, I got all the jobs I wanted already, just need to interpret on which day (week day) it is scheduled.
    Thanks
    select JOB_NAME, JOB_OWNER,job_type, mjs.START_TIME, DECODE(mjs.frequency_code,
    1, 'Once', 2, 'Interval', 3, 'Daily', 4, 'Weekly',
    5, 'Day of Month', 6, 'Day of Year', mjs.frequency_code) "FREQUENCY",
    mjs.days
    from mgmt_job mj, MGMT_JOB_SCHEDULE mjs
    where mj.SCHEDULE_ID=mjs.SCHEDULE_ID
    and mj.job_type='OSCommand'
    and mjs.Frequency_code in (3,4)
    and mj.is_library =0

    select job_name, job_owner, job_type, mjs.start_time,
               decode (
                    mjs.frequency_code,
                    1, 'Once',
                    2, 'Interval',
                    3, 'Daily',
                    4, 'Weekly',
                    5, 'Day of Month',
                    6, 'Day of Year',
                    mjs.frequency_code
                    "FREQUENCY", mjs.days, column_value
      from mgmt_job mj, mgmt_job_schedule mjs, table (nvl(days,sysman.mgmt_job_int_array(1,2,3,4,5,6,7)))
    where       mj.schedule_id = mjs.schedule_id
               and mj.job_type = 'OSCommand'
               and mjs.frequency_code in (3, 4)
               and mj.is_library = 0you may need to tweak the values in sysman.mgmt_job_int_array: use less or other values or simply put them null ....

  • How can I retrieve my account I forgot my security question?

    Please I want to make a purchase online through my iPad, but I couldn't due to some problem that is related to my ID. How can I retrieve my account? I forgot my security questions

    From an older post by King_Penguin:
    If you can't remember the answers to the security questions, then go to Express Lane  and select 'iTunes' from the list of 'products' in the middle of the screen.
    Then select 'iTunes Store', and on the next screen select 'Account Management'
    Next choose 'iTunes Store Account Security' and fill in that you'd like your security questions/answers reset.
    You should get an email reply within about 24 hours (and check your Spam folder as well as your Inbox).

  • Purchased songs in the past then recently purchasd new songs,  but the new purchases replaced all of my old purchases.  How can I retrieve my old purchases?  Cannot find them in any of my playlists.

    Purchased songs in the past then recently purchasd new songs,  but the new purchases replaced all of my old purchases.  How can I retrieve my old purchases?  Cannot find them in any of my playlists.

    If you purchased all of the songs through itunes store, please follow these steps:
    1. Open up Itunes and Click on Itunes Store
    2. Once you're in the Itunes Store look to right side of the screen and you should see the word "purchased". Click purchased and you'll be sent to a purchase screen.
    3. Click on "All Songs" and then it will show all the songs you've downloaded. From there you just hit the button that looks like a cloud with an arrow on it, and it will download all the songs all over again.

  • HT201342 how can I retrieve my old files on important  and documents?informations

    How can I retrieve my old files on important documents and informations?

    Contacts and calendars are designed to be synced with a supported application on the computer or a cloud service like iCloud, Google, or Exchange.
    Has the device been used as designed?  If so, simply re-sync them.
    Did you actually allow the device to finish restoring after installing the update?

  • My iPhone was stolen last night and I'm trying to recover all my photos from that phone and get them on my mac laptop. The iCloud photo stream only imported 1,000 photos from my stolen phone. How can I retrieve all of my other photos?

    my iPhone was stolen last night and I'm trying to recover all my photos from that phone and get them on my mac laptop. The iCloud photo stream only imported 1,000 photos from my stolen phone. How can I retrieve all of my other photos?

    You have to reset the device to Factory Settings in order to restore it from an iCloud backup. You probably want to back it up as is before you do this.
    To do the reset after you have backed up the current device, go to Settings>Reset>Reset all Content & Settings. This will erase the device. If you are signed onto iCloud with Find My iPhone turned on, go to Settings>iCloud and scroll to the bottom to sign out of iCloud before you do the reset.
    Once you have reset your device, you will set it up like a new phone. When it asks if you want to restore it from an iCloud backup, select the backup you want to restore it from.
    Cheers,
    GB

  • Help! I synced my iCal from my old iPhone to iCloud. It worked great. I've done this because I'm switching to a Samsung phone and need to sync my iCal to my Google calendar. In attempting to do so today, my iCal is empty. How can I retrieve my iCal info??

    Help! I synced my iCal from my old iPhone to iCloud. It worked great. I've done this because I'm switching to a Samsung phone and need to sync my iCal to my Google calendar. In attempting to do so today, my iCal is empty. How can I retrieve my iCal info??

    This was EXACTLY what I needed about the purchases I made from my device. However, is there a way to re-download other ones you've made from a computer? Because I realized some of them were not just purchased from my device.
    This is a picture of what it looks like now:
    http://tinypic.com/r/107quxu/7
    As you can see, the stuff circled in red doesn't give me an option to download from Cloud Beta because it already says "downloaded".
    any way to get around that?

  • I got the new iPhone5 back in Dec, I hooked it up to my computer for the 1st time this wk.  It deleted all new data added since Dec (notes,contacts,texts,pics, info in apps) and reverted back to all my old data.  How can I retrieve all the lost data??

    I got the new iPhone5 back in Dec, I hooked it up to my computer for the 1st time this wk.  It deleted all new data added since Dec (notes,contacts,texts,pics, info added to apps) and reverted back to all my old data (literally uploaded all of my old texts and 1400 old pics and deleted anything new).  How can I retrieve all the lost data?? Please help!!

    SkyDaughter29 wrote:
    My current situation: I have soooo many texts on my iphone and I haven't deleted many because I need the information contained in them for future reference and for legal purposes.  I would really like to find a means and way to save them other than on the phone itself. I've done searches for various apps yet I'm not finding what I think I would need.  It appears Apple does not sync the texts between the iphone and my MacBook Pro.
    Try the computer apps PhoneView (Mac) or TouchCopy (Mac & PC):
    http://www.ecamm.com/mac/phoneview/
    http://www.wideanglesoftware.com/touchcopy/index.php
    Best of luck.

  • How can I retrieve my contacts and pictures after installing iOS6 on my iphone?

    How can I retrieve my contacts and pictures after installing iOS6 on my iphone? Don't call me stupid! I was relying on iCloud to have backed all this up, but turns out it didn't work. Can anyone help me get my photos back - they were of my baby daughter. Also, I've lost all my contacts. Please help.

    Unfortunately no. The only way the phone backs up is if you make it back up. You either connect to iTunes and backup and sync, or you set it up for a wifi sync to iCloud. But you have to setup iCloud to start with. You have learned a hard lesson on how to make sure you import pictures on a regular basis like you would the digital camera. When things happen to the phone, this is the media that is lost the most (pictures in camera roll). After taking a number of pictures, and especially ones you consider important, you should connect the phone to the computer and import them, so there is a backup copy on the computer.
    Contacts are saved in the backup as well, however they are really designed to be synced to a supported application on the computer, or backed up to iCloud or other cloud service. And, the only way to go back in time on the phone is to restore from a backup, but you also have to remember, you would lose everything on the phone that you had done since that backup, so it is a double edged sword.

  • I have mistakenly deleted a mail folder which I had created. Can't remember if it was located to 'iCloud' or 'On My Mac'. How can I retrieve the emails contained in this deleted folder? Your help will be immensely appreciated!

    I have mistakenly deleted a mail folder in which I had created. I can't remember if it was located to 'iCloud' or 'On My Mac'. How can I retrieve the emails contained in this deleted folder? Your help will be immensely appreciated!

    Yeah not a problem. It does seem though that if you did not have a Time Machine backup then you may not be able to recover the deleted folder :/ But for future reference to prevent any of this, a Time Machine backup is a great investment.
    What it does is create an entire backup of your computer anything from personal information down to the screen saver.
    What you first need is a new external hard drive (I would recommend a 1TB or higher just to prevent running out of space soon).
    after that, just plug in the drive to your computer.
    once it is plugged in, in the top right hand corner, close to the wi-fi symbol, you should see a symbol that looks like a clock with a backwards arrow around it.
    click on that and select "open time machine preferences"
    just turn the button to the "on" position, and select the backup drive and Time Machine does the rest
    very great tool

  • Question : In "Mail" my entire SAVED FILE HAS DISAPPEARED....how can I retrieve it?

    In MAIL my heading for SAVED ACCOUNT for myself and my husband has completely disappeared with all our saved stuff.  How can I retrieve these saved files? thanks for anyone's help.

    As the link says: "Make sure Mail is the current app."
    Once you open Time Machine, you will see your folder list on the left like this just as you do when not in Time Machine:
    If you have more than one "Sent" mailbox (as I do above), just click the little flippy triangle to the left of "Sent" to see them all.

  • When I copy text, where does it go and how can I retrieve it?

    New to apple. When I copy text, where does it go and how can I retrieve it?

    You retrieve it by pasting it somewhere.  It works just like copy/paste on a computer.

  • I'm trying to use Dictation.  Where does the text go, and how can I retrieve it?  Thank you.

    I'm trying to use Dictation.  Where does the text go, and how can I retrieve it?  Thank you.

    You dictate after you open a blank page in any text editor. The text goes on the page.
    You can use Text Edit for example (in your applications folder).
    With the blank page open, go to the Edit menu and select Start Dictation. When you are finished, you save the file as you would any other document. You can retrieve it, edit it or anything else you want, because it is a file like any other you create with that text editor.

  • I have lost an fcpx project. when i search it, i'm directed to a backup file, but it's just (gibberish/code) text.  how can i retrieve/restore my project?  HELP!!!???

    i have lost an fcpx project. when i search it, i'm directed to a backup file, but it's just (gibberish/code) text. 
    i think i was asked to install an update (something to do with libraries?) before i started working, but i didn't do the update.
    don't know if this has anything to do with problem.
    how can i retrieve/restore my project?  HELP!!!???

    juddfromsherman oaks wrote:
    i have lost an fcpx project. when i search it, i'm directed to a backup file, but it's just (gibberish/code) text.
    The backups for your version are date-time stamped as the name and with an extension of .fcpproject. They look like this.
    The original project is named CurrentVersion.fcpproject.
    You need to replace the CurrentVersion with the backup file and rename it to be CurrentVersion.fcpproject.
    With FCPX closed, I suggest you move the original to the Trash, but not empty it. Then promote your backup one level higher in the project folder hierarchy (to be at the same level that the original previously occupied. Then rename the backup.
    Open up FCPX, which should now recognize your project.
    Russ

Maybe you are looking for

  • Application crashes on starting from one path but works from another path

    We have an odd problem.  A small application is deployed to a handful of users. The PB11.5 version has been running successfully for years on XP and then a year on Win7. It was recently migrated to PB12.5 and redeployed. It is a simple deployment - E

  • Network Shared Variable: Aliasing not working

    Hello! I am running a cRIO 9075, which is publishing network shared variables. I can see and modify them within Distributed System Manager. Unfortunately I am not able to read/write the variables through labview. What I have done so far: Tools -> Sha

  • COPA and SD

    Hi, My client needs to have COPA thru FI postings only as they want to bring the details of SD in a legacy system - customized. Option 1 -The Co code contains many Plants and the saels are flows thru SD and COPA . only one plant whose SD system is in

  • Develop with 11.2 ODP 64-bit, deploy in 11.2 ODP 32-bit

    Will an application that is developed on a x64 machine against a x64 version of ODP, and built to target Any Platform, function normally when deployed to a x86 machine with the x86 ODP? Both x86 and x64 ODP version's would be 11.2. Thanks, --=Chuck

  • Evaluate Authentication Scheme from Logon Ticket in WAS ABAP

    Hello, we've got the following problem: we have a corporate intranet portal. The portal is connected to several backend-systems. Between the portal and the backend-systems is a trust relationsship to enable single sign on. On Web-AS-Java-based system