I can not remove spaces from TEXT file..

Hi All,
please advise me why the following code not remove the spaces or tab from the text file.
    try
        FileReader fr = new FileReader("D:\\Test\\a.txt");
BufferedReader br = new BufferedReader(fr);
Pattern p;
  Matcher m;
String line;
String afterReplace = "";
  String inputText = "";
while((line = br.readLine()) != null)
   inputText = line;
  p = Pattern.compile("\\s+|\t");
  m = p.matcher(inputText);
  System.out.println(afterReplace);
  afterReplace = afterReplace + m.replaceAll(" ") + "\r\n";
  System.out.println(afterReplace);
fr.close();
      catch (Exception e){
  System.err.println("Error: " + e.getMessage());
  }my regards
Wael

many thanks for you , i try to used it for the following text but the results same.
McNair was shot and killed last weekend in what police say was a murder-suicide.  (July 9)                      Nation / World                          By:  AP                                 
 Comments: text ( 0 ) |  video ( 0 )    + Add a comment        
      Be the first to  add a comment .                                                           
       1          2          3          4          5                 Your Rating               <br>                                                                                                                                                                                                                                                                                                       
    Popularity                                                                                                                                    Your Name:                Your Comment:                                                                                                 
 http://videos.kansascity.com/vmix_hosted_apps/p/media?id=4999903&amp;item_index=&amp;genre_id=00000840 
                                                                 Your Email:                                     Friend's Email:                                     Your Message:                                                                                                                                                                                                                          
Top Videos                                       Nation / World                       
                Sports                                       Entertainment                                       Business                                       Lifestyle                                       
Archive                                       User Submitted                                       Politics                                       Ink                                       Local                                       
Selects                                                                                                                   
 all                        Sort By:                  Most Recent        Most Popular   
          Highest Rated                                                                 Loading...      
                           <br>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
 All users : If you have not already done so, Click "Record a Comment" to begin. Next, click "Allow" to use your camera.<br><br>  
 Additional Info for Mac users : If you do not see video (after clicking 'allow'), do the following:<br>      Click on the blue "gear" icon   in the lower right corner to bring up the settings window.     Click on the webcam icon.       If you are using a built in iSight camera, 
choose USB Video Class Video from the pulldown menu. You should see video immediately.<br><br>       Click "close" button.   
Record! You must record at least ten seconds before 
you can stop.                

Similar Messages

  • CAN NOT REMOVE PHOTOS FROM STREAMING FILE

    I HAVE TRIED TURNNING OFF MY PHOTO STREAM ON MY DEVICE AND RESTING IT IN i CLOUD, BUT I STILL HAVE ALL THE PHOTOS IN MY i PAD2 PHOTO STREAM ALBUM. I HAVE EVEN GONE IN TO MANAGE STORAGE AND TURNED OFF THE BACKUP OPTIONS FOR THE CAMERA ROLL AND DELETED BACKUP. AND STILL CAN NOT GET RID OF THE PHOTO STREAM PHOTOS????
    PLEASE HELP ANYONE!!!

    Photo Stream FAQ
    http://support.apple.com/kb/HT4486
    Reset Photo Stream
    http://support.apple.com/kb/HT4890

  • I can not remove itunes from my computer.

    I've tried all these steps, in this link
    http://discussions.apple.com/thread.jspa?threadID=403421&tstart=15
    and when i get to the add/remove programs menu from control panel, itunes begins to uninstall, stops, and then just goes right back to the add/remove program menu and is still there. nothing happens.
    is there any other way i can fully remove itunes from my computer.

    /ignore. i got it.

  • Can not copy spaces from some pdf file

    https://sites.google.com/site/sharedacrobat/data/cannot_copy_text.pdf
    I'm trying to copy some text from the above pdf file (with mouse and ctrl-C). But many spaces are missing (e.g., the following text). Is it a problem with acrobat. Or it is a problem with the pdf file. I use pdftotext to conver the pdf file to a text file. The text file looks fine. Therefore, I suspect it is a bug in Acrobat. But I'm not completely. Could you please take a look and let me know what the problem is and how to fix it? Thanks!
    ConnectingmicroRNAgenestothecore
    transcriptional regulatorycircuitryofembryonicstemcells

    It appears that the PDF creation process was deliberately intended to make repurpose of content difficult.
    --| The table description/caption uses "Calibri" font having non-standard lookup tables.
    (for some relevant discussion scroll to UVSAR's post in this thread:
    http://acrobatusers.com/forum/printing-prepress/pdfs-printing-garbage-characters )
    --| The 3.3 font size of the table cells' content.
    --| The small page size associated with dense packing of content.
    Perhaps if you print to an image (from Acrobat) and OCR the resultant PDF you may be able to do something.
    However, the small font size may be problematic.
    Be well...

  • Can not remove ? from external hard drive folder in LR5 & can't link smart preview & original pic

    I have LR5 and a MacBook Pro OSX 10.8.5 I have an external hard drive that when I imported photos from my cameras memory card I selected the hard drive as the source to move the pictures to. I forgot if I clicked ADD, MOVE, or COPY.
    In the library mode in LR5 the external hard drive shows up under folders, but has a question mark on every folder on the external hard drive. I control clicked on the question mark for the first folder (the parent folder?) and choose “Find missing folder”. I then navigated to the external hard drive and clicked on that same folder, then clicked choose. Nothing happened. I tried this same method with individual folders and the same, I control click on the folder with a question mark, navigate to the same folder on the hard drive, click on it (I tried both just clicking on the folder so it was highlighted and actually opening the folder), and select choose, the question marks remain.
    1. How do I link the two to remove the question mark?
    Second question, possibly related. I have a collection in the library mode that has only previews, the originals were added to the same external hard drive as above. When I navigate to the hard drive via my finder (not in LR5), the originals are there. When I am in the library mode in LR5, in this collection, and click on the preview square in the top right corner of an individual picture in that collection, it says “image can be edited using its smart preview but the original file can not be found. Would you like to locate it".
    The original location of it shows below this statement and is correct; it shows the path to the external hard drive and the folder where the original is contained that I mentioned previously. I navigate to that picture on the external hard drive and select it. I get another notice box pop up that says “the file is associated with another photo in the catalog. Each file can only be associated with one photo.” I select show in library and it brings me right back to the image that is a smart preview only. I am stuck in this loop and cant figure out how to associate the original on the external hard drive with the smart preview in LR5.
    1.   I have the originals still on my camera memory card, do I import again? I am afraid I will loose all my edits.
    I hope I gave you the right info. Every link I find to answer this question is related but not quite the same, any link you know of is apreciated. Thanks!
    Ashley

    Have you ever re-named files using duplicate file names e.g. names that have been used previously?
    See if this link helps to locate missing files and near posibilities:
    http://helpx.adobe.com/lightroom/help/locate-missing-photos.html

  • Can't remove keywords from multiple files

    I can't believe I can't get this working.
    Say I have 15 images with the same 10 keywords in every file. One of the keywords is "banana" and I want to remove it from all 15 files.
    I select all the 15 files. When I do that one becomes "active" (it gets lighter gray highlight than the 14 other images).
    I then go to the Keywording panel and manually remove "banana" from the list.
    When I look through files to see the change all but the one that was active STILL has the "banana" keyword applied.
    I have also tried selecting the 15 files and made the file without the banana keyword active and run "Sync Metadata" and removed "banana" from the "Keywords" field in the dialog box. Same thing happens. No change to the files that aren't active.
    What am I doing wrong?
    Thanks in advance,
    Unicorn

    Simple. Don't take photos of bananas!
    Actually, I believe you need to select the photos in the Grid, not in the filmstrip. Then, removing keywords should work as expected, and then when you try to remove the keyword, this keyword will be removed from all selected photos.

  • Workshop IDE can not create CTRL from WSDL file

    Hi everybody,
    For the evualtion of the Workshop IDE that comes with WLS 7.0 beta, I'm developing
    a web service (via this IDE) which must interoperate with another web service
    implemented with the help of another tool. I got the corresponding WSDL of this
    "outside" web service (see attachement), and when I want to generate the corresponding
    CTRL (via Add Service Control), I get the following error:
    Error: Could not find operation 'sayHello' in portType ''
    Prescription: The operation you are trying to bind was not found among the declared
    operations. Please check your <portType> sections.
    I do not have a lot of experience with WSDL files and its specification, but I
    compared this file with another WSDL files that work with WORKSHOP IDE, and I
    do not see difference between these files and the file that does not work. Moreover
    the IDE error says that my service 'sayHello' can not be find inside the 'portType'
    tags, but if you have a look at the WSDL file, you will see that is not true ?!?!?
    Can somebody help me please?
    Have a nice day
    Vincent

    Vincent,
    What is happening is that the type attribute on the binding tag must match
    both the targetnamespace and the name of the portType name attribute. Yours
    do match in basename only. When parsing the WSDL file what we do is put the
    name attributes of the portType, service and binding tags into the
    targetNamespace of the WSDL and then we expect the references to these names
    to also be resolved to that namespace.
    In the case of your WSDL, your targetNamespace is
    http://localhost:8000/HelloWorldApp/servlet/rpcrouter and the type attribute
    on the binding attribute just references HelloWorldServicePort which means
    it will use the default namespace of http://schemas.xmlsoap.org/wsdl which
    is, of course, different than the targetNamespace.
    To fixup the WSDL I would recommend you just define a new namespace at the
    top of the WSDL file that matches the targetNamespace attribute and then use
    that prefix in the text value of the attribute used to reference that name.
    Yes, we do need to do some better parser/error messages to help identify
    this :)
    Here is one way that I have done to fixup your WSDL and Workshop does pull
    it in and expose the methods correctly:
    <?xml version='1.0'?>
    <definitions name='HelloWorldService'
    xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
    xmlns:xsd='http://www.w3.org/2001/XMLSchema'
    xmlns='http://schemas.xmlsoap.org/wsdl/'
    xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/'
    targetNamespace='http://localhost:8000/HelloWorldApp/servlet/rpcrouter'
    xmlns:test='http://localhost:8000/HelloWorldApp/servlet/rpcrouter'
    xmlns:xsd1='http://localhost:8000/HelloWorldApp/servlet/rpcrouter/schema'>
    <types>
    <xsd:schema
    targetNamespace='http://localhost:8000/HelloWorldApp/servlet/rpcrouter/schem
    a'>
    <xsd:simpleType name="java.lang.Integer"><xsd:restriction
    base="xsd:int"/></xsd:simpleType>
    <xsd:simpleType name="java.lang.Short"><xsd:restriction
    base="xsd:short"/></xsd:simpleType>
    <xsd:simpleType name="java.lang.Long"><xsd:restriction base="xsd:long"
    /></xsd:simpleType>
    <xsd:simpleType name="java.lang.Double"><xsd:restriction
    base="xsd:double"/></xsd:simpleType>
    <xsd:simpleType name="java.lang.Float"><xsd:restriction
    base="xsd:float"/></xsd:simpleType>
    <xsd:simpleType name="java.lang.Boolean"><xsd:restriction
    base="xsd:boolean"/></xsd:simpleType>
    <xsd:simpleType name="java.lang.Character"><xsd:restriction
    base="xsd:string"/></xsd:simpleType>
    <xsd:simpleType name="java.lang.String"><xsd:restriction
    base="xsd:string"/></xsd:simpleType>
    <xsd:simpleType name="java.lang.StringBuffer"><xsd:restriction
    base="xsd:string"/></xsd:simpleType>
    <xsd:simpleType name="java.lang.Byte"><xsd:restriction
    base="xsd:byte"/></xsd:simpleType>
    <xsd:simpleType name="char_lb_rb"><xsd:restriction
    base="xsd:string"/></xsd:simpleType>
    <xsd:simpleType name="char"><xsd:restriction
    base="xsd:string"/></xsd:simpleType>
    </xsd:schema>
    </types>
    <message name='sayHelloInput'>
    <part name='message' type='xsd:string'/>
    </message>
    <message name='sayHelloOutput'>
    <part name='result' type='xsd:string'/>
    </message>
    <portType name='HelloWorldServicePort'>
    <operation name='sayHello'>
    <input message='test:sayHelloInput'/>
    <output message='test:sayHelloOutput'/>
    </operation>
    </portType>
    <binding name='HelloWorldServiceBinding'
    type='test:HelloWorldServicePort'>
    <soap:binding style='rpc'
    transport='http://schemas.xmlsoap.org/soap/http'/>
    <operation name='sayHello'>
    <soap:operation
    soapAction='http://localhost:8000/HelloWorldApp/servlet/rpcrouter/sayHello'/
    >
    <input>
    <soap:body use='encoded' namespace='urn:HelloWorldService'
    encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
    </input>
    <output>
    <soap:body use='encoded' namespace='urn:HelloWorldService'
    encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
    </output>
    </operation>
    </binding>
    <service name='HelloWorldService'>
    <port name='HelloWorldServicePort'
    binding='test:HelloWorldServiceBinding'>
    <soap:address
    location='http://localhost:8000/HelloWorldApp/servlet/rpcrouter'/>
    </port>
    </service>
    </definitions>
    Thanks,
    Art
    "Vincent Ducret" <[email protected]> wrote in message
    news:[email protected]...
    >
    Thanks for your answer, but I do not understand it, and also yoursuggestion.
    >
    According to WSDL specification, the 'type' attribute of a 'binding' tagmust
    reference (bind to) an exisiting 'portType' tag. And it's the case here,no? I.e.
    we have a 'portType' tag called HelloWorldServicePort, which is referencedby
    the 'binding' tag named HelloWorldServiceBinding via its 'type' attribute:'HelloWorldServicePort'.
    >
    Where is the problem ?
    Thanks a lot
    Thanks for your help

  • Can't remove music from Flash file

    I decided not to use a music (wav) file and want to delete it
    from my file. I deleted it from the library and also the layer it
    was on. I publish the file and the sound still plays! I have no
    idea how to get rid of it!

    jacwright wrote:
    > I decided not to use a music (wav) file and want to
    delete it from my file. I
    > deleted it from the library and also the layer it was
    on. I publish the file
    > and the sound still plays! I have no idea how to get rid
    of it!
    You must be previewing an old file, perhaps cached. If there
    is no sound, it's impossible
    for flash to play it :)
    Save it under new name and publish again.
    Best Regards
    Urami
    "Eat one live toad in the morning and nothing worse will
    happen to you for the rest of the day."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Removing spaces from multiple files

    I'm using iWeb to make a photogallery, and when i publish to my server on yahoo, it says there is an error. Now i've had tons of errors and problems with yahoo, and i've come to the conclusion that this problem is because the file names have spaces, and yahoo's servers don't like spaces. So, i was wondering how one would go about removing spaces in file names of multiple files in a folder.

    Don't forget that this won't fix any links within the pages themselves.
    If you have a link to "some page.html" and the script renames the file 'some_page.html', you'll need to manually update the links in the page to the new file name before the link will work.

  • How can i remove password from pdf file that i lost password to

    i have 2 pdf's that are atleast 6 months old i need to check information in i dont ever remember putting a password on them but i cant gain access to them...any ways i can remove these password?

    Adobe Reader can't remove passwords at all. Adobe Acrobat can, but only if you know what the password is.

  • Can not remove or delete a file from CD-RW or DVD-RW disk

    I have P305D-S8900 notebook. I have a problem to remove or delete an old file from CD-RW or DVD-RW disk.
    After I have selected the file and had try to trash the file a message showed up " disk is not writable."
    Why is this happen?
    Solved!
    Go to Solution.

    Will solve if you do the following step
    http://support.microsoft.com/gp/cd_dvd_drive_problems
    http://support.microsoft.com/fixit#tab0
    select -->Your CD/DVD drive cannot read or write media in Windows.
    and @click RUN NOW  --> select@ Auto detect & repair
    After repair is done, Right click- erace disk
    after eraced the disk, select -Format

  • Antivirus software is blocking Bonjour install - can I remove Bonjour from install file?

    My work laptop has some restrictions that prevent me from installing Itunes 10.7 with Bounjour. Earlier it could be done by unzipping the instal file and delete the Bonjour install file, then install Itunes. I have some problems doing it with the new Itunes installer, anf would very much like some suggestions to how it can be done.

    I would think first about removing your anti-virus software. If you cannot do that, then you should disable it before doing any system software updates.

  • Can not import movies from a file folder into iPhoto 11 on my iMac

    I have movies in Iphoto on Macbook but when i try to import the movies into Iphoto 11 on my IMAC i get a message that says format unrecognized. 

    Download and install QuickTime Player 7 for Mac OS X v10.6.3 or later on your iMac and see if they will play with that. 
    As a test launch iPhoto with the Option key held down and create a new, test library. Trfy to Import the folder of videos into that library. Can you?

  • L can not remove pictures from my iphone 5 ios7 why

    l have followed the step by step to remove pictures but the trash bin icon doesn't light up to use it why

    What happens when you try to make a phone call?
    What is the exact wording of any error message received?
    In what country are you located?
    Where did you purchase this iPhone?
    What wireless provider are you trying to use the iPhone with?

  • How can I remove music from my iPhone that's not on a playlist, or checked off in the Sync window in any of the possible categories (Playlist, genre, artist, etc)? HELP! It's taking up SO much space on my phone

    How can I remove music from my iPhone that's not on a playlist, or checked off in the Sync window in any of the possible categories (Playlist, genre, artist, etc)? HELP! It's taking up SO much space on my phone but I cannot see a way to remove any of it

    If it's slow on startup it would be extensions loading or LaunchDaemons starting up. 
    You should have a look in:
    /Library/LaunchDaemons
    /Library/Extensions
    You can count out anything in your home folder and it shouldn't put anything in /System as that's reserved for Apple. 

Maybe you are looking for

  • One To Many Copy in SAP BPC

    Hi All, I have a requirement that I need to copy data from one month to multiple different months and also from one category (actuals) to forecast and outlook. Both, Source Time and Source Category should be through selected prompt and user should ha

  • Error message on startup Satellite C655-S5068

    Error C++runtime library C:\windows\system32 spoolsv.exe.  also an error stating that NET. Framework 2.0 is missing but when you download it from microsoft it says that its already installed .  Tried downloading Net. 4 to no avail.  Have also reloade

  • Korg micro37 keyboard turns off after a few seconds

    Hi all, My Korg micro37 keyboard turns itself off after about 4 seconds after I plug the keyboard in. Any idea why this happens? It doesn't happen on a Ubuntu 12.04 laptop, but does on another Arch laptop with 3.7.1 kernel. I had the same problem wit

  • Oracle Open World Technical Presentations

    Steven Chan just posted an entry on his blog regarding the availability of OOW 06 conference presentations. For those who are interested in some of the technical presentations, you will find the information you need to download the presentations in S

  • Adjustment Brush, External Editor and Export Version

    hello, I am considering switching from lightroom to Aperture but I am having a major issue: I am working on .DNG files. I apply all the adjustments that I need, then either send the image to PSCS4 (I tried both tiff and PSD), or export it through the