Reading a LargeFile and search a word in that File

Hai every one
I need help,
I want to read Large File and i have to search a word from that file.
It is a Dictionar search means searching a meaning for a perticular given word.
I used FileReader and BufferReader.
But i didn't get all the file into BufferReader.
Please Help me
I written my code is

I written my code isIt's not going to work with that code.

Similar Messages

  • Adobe reader XI crash and hangs when open the pdf file

    After update the adobe reader xi 11.0.10, the reader always crashes and hangs when open the pdf file. Please help me how to do.

    Ben Leung wrote:
    HThis situation is started after I clear the pop up advertisement.
    What kind of advertisement?  In Adobe Reader?  Can you post a screenshot of that: https://forums.adobe.com/thread/1070933
    Regarding the crash, can you try disabling Protected Mode through the registry: download, unzip, then run the registry script https://files.acrobat.com/a/preview/49eeb48b-07c5-4502-984c-8a25259914fa

  • How do I edit and save a word document that has been e-mailed to my ipad

    How do I edit and save a word document that has been e-mailed to my ipad and then re-send

    Use the paid version (install and activate) of Microsoft Word.
    https://itunes.apple.com/sg/app/microsoft-word-for-ipad/id586447913?mt=8

  • HT5557 I have mistakenly started a audio that read my text and books.  What is that and how do find it?

    I have mistakenly started a audio that read my text and books.  What is that and how do find it?

    If there is a box around what it's reading that's Voiceover and you can ask Siri to turn it off.
    if you run two fingers down the page and it reads thats speak screen. Go to settings> general> accessibility> speech> speak screen> off.

  • Time machine: I get the following message: The backup disk image "/Volumes/Data-1/Clemens's iMac.sparsebundle" is already in use - what to do? Where and how do I find that file and get rid of it?

    time machine: I get the following message: The backup disk image “/Volumes/Data-1/Clemens’s iMac.sparsebundle” is already in use - what to do? Where and how do I find that file and get rid of it?

    I'm on Mountain Lion and have version 6.1 of AirPort utility so there is no button to "Disconnect All Users"and the only other option of "removing and re-selecting the drive via Time Machine Prefs" doesn't work either. So this will work.
    Launch Airport Utility and select the TC "Edit" button, then select the Disks tab. Deselect "Enable File Sharing" and click "Update". The TC will reboot then follow the same procedure and reselect "Enable File Sharing" and click "Update". After TC reboots again you'll be up and running. Not the neatest way to do it but saves having to unplug the TC which risks disk damage and the whole procedure takes less than a minute.The "Enable File Sharing" button seems to have replaced the "Disconnect All Users" button but with the slight disadvantage that it reboots the TC which takes up additional time.

  • I downloaded xcode 4 from my brother user account, and I want to move that file to my user account ( how can I do it please help)

    Hi everyone can anybody help please, I downloaded xcode 4 from my brother user account, and I want to move that file ( which is xcode 4) to my own user account, I was trying to find how to do it, but unfortunatally couln't do it, so please need world help,

    You cannot. You have to make your own download by signing into the App Store using your Apple ID then downloading the file.
    If you just want to install it on your computer, then copy the file to a flash drive and transfer it to your computer.

  • Reading the Blob and writing it to an external file in an xml tree format

    Hi,
    We have a table by name clarity_response_log and content of the column(Response_file) is BLOB and we have xml file or xml content in that column. Most probably the column or table may be having more than 5 records and hence we need to read the corresponding blob content and write to an external file.
    CREATE TABLE CLARITY_RESPONSE_LOG
      REQUEST_CODE   NUMBER,
      RESPONSE_FILE  BLOB,
      DATE_CRATED    DATE                           NOT NULL,
      CREATED_BY     NUMBER                         NOT NULL,
      UPDATED_BY     NUMBER                         DEFAULT 1,
      DATE_UPDATED   VARCHAR2(20 BYTE)              DEFAULT SYSDATE
    )The xml content in the insert statement is very small because of some reason and cannot be made public and indeed we have a very big xml file stored in the BLOB column or Response_File column
    Insert into CLARITY_RESPONSE_LOG
       (REQUEST_CODE, RESPONSE_FILE, DATE_CRATED, CREATED_BY, UPDATED_BY, DATE_UPDATED)
    Values
       (5, '<?xml version="1.0" encoding="UTF-8"?><xml-response><phone-number>1212121212</tracking-number></xml-response>', TO_DATE('09/23/2010 09:01:34', 'MM/DD/YYYY HH24:MI:SS'), 1, 1, '23-SEP-10');
    Insert into CLARITY_RESPONSE_LOG
       (REQUEST_CODE, RESPONSE_FILE, DATE_CRATED, CREATED_BY, UPDATED_BY, DATE_UPDATED)
    Values
       (6, '<?xml version="1.0" encoding="UTF-8"?><xml-response><phone-number>1212121212</tracking-number></xml-response>', TO_DATE('09/23/2010 09:01:34', 'MM/DD/YYYY HH24:MI:SS'), 1, 1, '23-SEP-10');
    Insert into CLARITY_RESPONSE_LOG
       (REQUEST_CODE, RESPONSE_FILE, DATE_CRATED, CREATED_BY, UPDATED_BY, DATE_UPDATED)
    Values
       (7, '<?xml version="1.0" encoding="UTF-8"?><xml-response><phone-number>1212121212</tracking-number></xml-response>', TO_DATE('09/23/2010 09:01:34', 'MM/DD/YYYY HH24:MI:SS'), 1, 1, '23-SEP-10');
    Insert into CLARITY_RESPONSE_LOG
       (REQUEST_CODE, RESPONSE_FILE, DATE_CRATED, CREATED_BY, UPDATED_BY, DATE_UPDATED)
    Values
       (8, '<?xml version="1.0" encoding="UTF-8"?><xml-response><phone-number>1212121212</tracking-number></xml-response>', TO_DATE('09/23/2010 09:01:34', 'MM/DD/YYYY HH24:MI:SS'), 1, 1, '23-SEP-10');
    Insert into CLARITY_RESPONSE_LOG
       (REQUEST_CODE, RESPONSE_FILE, DATE_CRATED, CREATED_BY, UPDATED_BY, DATE_UPDATED)
    Values
       (9, '<?xml version="1.0" encoding="UTF-8"?><xml-response><phone-number>1212121212</tracking-number></xml-response>', TO_DATE('09/23/2010 09:01:34', 'MM/DD/YYYY HH24:MI:SS'), 1, 1, '23-SEP-10');THe corresponding proc for reading the data and writing the data to an external file goes something like this
    SET serveroutput ON
    DECLARE
       vstart     NUMBER             := 1;
       bytelen    NUMBER             := 32000;
       len        NUMBER;
       my_vr      RAW (32000);
       x          NUMBER;
       l_output   UTL_FILE.FILE_TYPE;
    BEGIN
    -- define output directory
       l_output :=
          UTL_FILE.FOPEN ('CWFSTORE_RESPONCE_XML', 'extract500.txt', 'wb', 32760);
       vstart := 1;
       bytelen := 32000;
    ---get the Blob locator
       FOR rec IN (SELECT response_file vblob
                     FROM clarity_response_log
                    WHERE TRUNC (date_crated) = TRUNC (SYSDATE - 1))
       LOOP
    --get length of the blob
    len := DBMS_LOB.getlength (rec.vblob);
          DBMS_OUTPUT.PUT_LINE (len);
          x := len;
    ---- If small enough for a single write
    IF len < 32760
          THEN
             UTL_FILE.put_raw (l_output, rec.vblob);
             UTL_FILE.FFLUSH (l_output);
          ELSE  
    -------- write in pieces
             vstart := 1;
             WHILE vstart < len AND bytelen > 0
             LOOP
                DBMS_LOB.READ (rec.vblob, bytelen, vstart, my_vr);
                UTL_FILE.put_raw (l_output, my_vr);
                UTL_FILE.FFLUSH (l_output);
    ---------------- set the start position for the next cut
                vstart := vstart + bytelen;
    ---------- set the end position if less than 32000 bytes
                x := x - bytelen;
                IF x < 32000
                THEN
                   bytelen := x;
                END IF;
                UTL_FILE.NEW_LINE (l_output);
             END LOOP;
    ----------------- --- UTL_FILE.NEW_LINE(l_output);
          END IF;
       END LOOP;
       UTL_FILE.FCLOSE (l_output);
    END;The above code works well and all the records or xml contents are being written simultaneously adjacent to each other but we each records must be written to a new line or there must be a line gap or a blank line between any two records
    the code which I get is as follow all all xml data comes on a single line
    <?xml version="1.0" encoding="ISO-8859-1"?><emp><empno>7369</empno><ename>James</ename><job>Manager</job><salary>1000</salary></emp><?xml version="1.0" encoding="ISO-8859-1"?><emp><empno>7370</empno><ename>charles</ename><job>President</job><salary>500</salary></emp>But the code written to an external file has to be something like this.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <emp>
      <empno>7369</empno>
      <ename>James</ename>
      <job>Manager</job>
      <salary>1000</salary>
    </emp>
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <emp>
    <empno>7370</empno>
    <ename>charles</ename>
    <job>President</job>
    <salary>500</salary>
    </emp>Please advice

    What was wrong with the previous answers given on your other thread:
    Export Blob data to text file(-29285-ORA-29285: file write error)
    If there's a continuing issue, stay with the same thread, don't just ask the same question again and again, it's really Pi**es people off and causes confusion as not everyone will be familiar with what answers you've already had. You're just wasting people's time by doing that.
    As already mentioned before, convert your BLOB to a CLOB and then to XMLTYPE where it can be treated as XML and written out to file in a variety of ways including the way I showed you on the other thread.
    You really seem to be struggling to get the worst possible way to work.

  • Read a bfile and write its contents in a file stored in my hard disk

    I will try to describe my problem as clearly as I can.
    I have created a table that includes a LOB column "BFILE"
    Then I'm trying to READ the BFILE stored in our database using the
    DBMS_LOB package.
    so far so good.
    Now I want to write these data that I have read in the step above in a file
    saved in my local disk. The problem is, since the file in databse is
    stored as binary and I read Raw Data , I cannot create an exact copy of this
    file. It seems that It doesn't write the RAW data in the binary format.
    I have used the DBMS_LOB.READ to read the data and it works fine.
    Now I want to create a file in my local disk and dump the data that I have
    read from the BFILE that has been initially stored in the database.
    Is there any solution to this problem?
    I hope to hear from you soon
    Thanks in advance

    ignore me now.... I answered my own question a short while
    ago.
    for anyone who cares....
    I used CFHTTP to get the page and then used a cffile to write
    the #cfhttp.filecontent# into the new file!

  • Using cfhttp to read a page and write its contents to a file.

    Hi,
    I am trying to get a feed of my ebay store listings to load
    into froogle. Unfortunately, ebay provides the feed as a website
    not a file and froogle (via GoogleBase) needs the file to be
    submitted as an XML file.
    Is there a way to use something like cfhttp to load up the
    page where the feed is located, scan the page and write it's
    contents into an XML file that I can then load up to GoogleBase???
    thanks for the help.

    ignore me now.... I answered my own question a short while
    ago.
    for anyone who cares....
    I used CFHTTP to get the page and then used a cffile to write
    the #cfhttp.filecontent# into the new file!

  • PB Reader 8.1 and Elements 6.0 cannot open file if path contains space ???

    Hello,
    We encountered a problem between Adobe Reader 8.1 and Elements 6.0
    The problem appear when the VIEW PDF FILE option is enabled in PDFMakers options and ESPECIALLY if the path where the file has been saved contains a space.
    Is there a patch to resolve this malfunction ?
    If not, is there any way to disable the VIEW PDF FILE option for all users and default user ? (script, batch or registry file)
    (The Install Shield Tuner for Acrobat 6 do not permits to have an effect on this parameter.)
    Thank you for responses

    Alexander,
    I'm having a similar problem, but with a Flash file.
    I've verified that I can play the file from the
    command line and from my KDE Desktop (SUSE Linux 10.1),
    and so I'm pretty sure that the player is working.
    But when I generate a PDF using LaTeX and your movie15
    package AR8.1.1 redirects me to:
    http://www.adobe.com/special/acrobat/nomediaplayer.html
    If I look at the attachments pane, the file is
    correctly identified as "application/x-shockwave-flash"
    But under the filename, the phrase "Indeterminate" has
    been added, which suggest that the something in the
    annotation is not recognized (I'm using move15 2007/05/07).
    Either that, or AR itself is broken.
    I'm still in the process of dissecting the PDF to see
    where the problem lies. But it would be helpful if
    someone could post a url to an embedded media example
    that is known to work with Linux AR8. That way I can
    at least check that my setup is working, which will
    be hakf the battle won.
    Cheers,
    James

  • CONTAINS and searching for words with an apostrophe

    I have a CONTEXT index in place, and I'm trying to search for the word
    JOHN'SHow do you go about going that, I tried both
    JOHN'S
    JOHNSand neither worked.
    --=Chuck

    How are you doing your search?
    SQL> create table test1 (
      2  a1 number,
      3  a2 varchar2(20));
    Table created.
    SQL> insert into test1 select level, 'Line '||level from dual connect by level < 500;
    499 rows created.
    SQL> insert into test1 values (1000, 'JOHN''S');
    1 row created.
    SQL> create index context_index on test1 (a2) indextype is ctxsys.context;
    Index created.
    SQL> select * from test1
      2  where contains (a2, 'JOHN''S') > 0;
            A1 A2
          1000 JOHN'S
    SQL> select * from test1
      2  where contains (a2, 'JOHNS') > 0;
    no rows selected
    SQL> select * from test1
      2  where contains (a2, 'JOHN') > 0;
            A1 A2
          1000 JOHN'S

  • IMP: Read this WIKI and search for ESS MSS issues before posting any thread

    Here is the link to the new WIKI topic area ESS MSS
    http://wiki.sdn.sap.com/wiki/display/ERPHCM/HCM+ESS
    and
    http://wiki.sdn.sap.com/wiki/display/ERPHCM/HCM+MSS
    Feel free to add FAQs, Guidelines, Links and everything of interest for Human Capital Management into this WIKI. With your help this will become a valuable resource for the HCM community for ESS MSS
    I would appreciate if you search in the WIKI and earlier threads, before posting a  new thread
    For Beginners, Please refer the ESS/MSS customisation Guide here
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/108c31e7-b6a7-2d10-3692-c1a9f7a5c4dc?QuickLink=index&overridelayout=true
    Edited by: Siddharth Rajora on Dec 19, 2011 8:35 PM
    Edited by: Siddharth Rajora on Dec 19, 2011 8:36 PM

    teshlachris,
    iTunes, like other applications, will sometimes have issues trying to install from a different admin user than the one used to first install it.
    Did your son install iTunes with a different account? If so, your previous post did not include the fact your son had previously installed iTunes, or I would have suggested trying the install while logged in under his account.
    Hope this helps,
    Nathan C.

  • Already read the FAQ and searched and still have popping in my speake

    System is;
    AMD Athlon 64 3000
    Asus A8N-SLI Premium
    ATi X800XL
    ATi TV Wonder Pro
    SoundBlaster Audigy 2 Platinum
    Maxtor 300GB SATA HD
    4 Western Digital 80GB HDDs - RAID 0
    .5 GB Ram
    Klipsch Pro Media 5.
    Developed popping/cracking on my Asus A7N8X-Deluxe MOBO. Upgraded to Asus A8N-SLI Premium MOBO along with new CPU and Vid card. Still have popping/crackling in speakers. Even have same problem using headphones. Popping/Crackling is gone when using on-board audio with either MOBO. Card is on IRQ 6 and shared with Texas Instruments OHCI compliant IEEE 394 Host Controller. Is the Audigy toast or what?

    I had the same problem after an upgrade to 3.6.3.
    I was using password manager for a number of web sites before. Not using cookies but password manager.
    After 3.6.3 auto upgrade it did not work.
    I could not enter private browsing mode.
    When I looked in tools>options>security at my saved passwords the list was blank. The button in the saved passwords dialog that normally says "Show saved passwords" was actually blank (the button was there but there was no text on it).
    I did have my old bookmarks and was able to create new ones but oddly the bookmark all tabs menu function wouldn't work.
    I decided to reinstall firefox 3.6.3. There is no way something with that many bugs got out!
    I was able to get the full firefox executable from http://mozilla.com
    I closed all firefox windows and ran the installation.
    After re-running the install and starting firefox everything was fine. It must have been a bad download or the original install got messed up somehow.
    I hope you have the same good fortune I had!

  • Search a word inside a file uisng java

    Hi all,
    I have to write a java program that will search the given word inside all the files in the given directory.Finally it has to display the occurance of the word along with its location...i dono how to start with.Can anybody help me with an idea..Thanks in advance.

    Look in the java.io package. The class File represents both flat files and directories.
    There's also a class in there with a name like "LineNumberReader". You'll probably find that helpful.
    You didn't say what the criteria are for finding a match, for example whether it needs to be a case-insensitive match, or whether it must match the whole word or just the start of the word, etc.
    There are a variety of ways you can do text pattern matching, but I'd suggest that you do it in the simplest possible way, which would probably be just to use String.indexOf. Later on if this isn't sufficient, you can move up to regular expressions (see the java.lang.regex package).

  • How to Create a batch file to display and count specific words in log file

    Hi All,
    I have requirement Program to be written that will go through a log file and look for following key words.
    Unexpected Essbase error
    And also it will count the # of times the word error appear in a log file.
    You may use batch file or Perl script to complete this task.
    e.g. in the log file - It will flag yes that keyword "Unexpected Essbase error" found and word error occurs 9 times.
    Pls help me in know process to achieve above requirement.
    and pls let me know what is perl scripting ?
    Thanks in Advance
    Regards,
    SM

    Sorry but it sounds like you have been asked to do something and you have pasted the requirement on the forum, have you done any research to find out which scripting language you are going to use or any find examples, there are so many differents examples and help on the internet it just takes a little bit of time and investment.
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for

  • Deskjet 3050 wifi works w/ open WEP

    Dears, just bought HP 3050 deskjet and i like te way it looks and works. I want to SHARE EXPERIENCE - issue solved. Yes, the wireless issue is painful indeed. This is how i SOLVED it for my setup: i set up WEP open & 128bit ascii key and now no probl

  • Laptop won't power up with AC adapter and won't charge battery

    Here is the thing. 1) the laptop doesn't power on without a battery when directly connected to ac adapter. 2) the light which would indicate that the laptop is plugged into the ac adapter is not on when the ac adapter is plugged in. 3) the battery ch

  • Definition of "a personal computer" for CS Student and Teacher?

    I understand , that a Creative Suite (SC5 in my case) can only be used on a personal computer. Now I'm wondering, whether a computer I have recieved from my scientific institute for work and personal use (I do manage the computer myself) does qualify

  • Message interface in synchronous mode but run in asynchronous

    I try to use SAP-XI in synchronous mode with JDBC to JDBC connection. A 'Outbound' message Interface under synchronous mode is defined for sender while an 'Inbound' message interface under synchronous mode is for receiver. In the sender communication

  • Importing RAW from Nikon 1

    I recently bougth a nikon 1 camera and took photos using RAW extension. When I first imported to Apperture, I could saw the pictures!!! But when the imports ended and I erased the files from the SD Card, photos are still there in Apperture Library bu