Results 1 to 2 of 2
  1. #1
    NicoleN is offline Member
    Join Date
    Sep 2015
    Rep Power

    Question Java Read and Write

    Hi community!

    I am totally new to java. I would like to ask if it is possible to make a simple program with this language. The program should read a .txt file and extract in a new .txt any words matches my criteria.
    Criteria should be a specific array of characters before the word i want to copy.

    Old txt:
    <div class="title">
    <a href=
    "/word1/"> abc</a>

    <div class="title">
    <a href=
    "/randomletters/"> abc</a>

    <div class="title">
    <a href=
    "/copythat/"> abc</a>

    New txt:
    Is that practicability for someone that has never programmed before to do this? Or its a waste of time?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: Java Read and Write

    Yes, it's possible. You could start here: The Java™ Tutorials

    Once you are comfortable with the basics, search for a Java HTML parser and use it to extract the hyperlinks.

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. how to read and write ods file in java
    By sanjeev4343 in forum New To Java
    Replies: 1
    Last Post: 07-08-2012, 09:12 PM
  2. XML read/write in Java
    By bogdy.laurentiu in forum XML
    Replies: 5
    Last Post: 05-31-2010, 06:08 PM
  3. How to read/write txt in Java
    By megalomitis in forum New To Java
    Replies: 2
    Last Post: 11-13-2009, 10:09 AM
  4. Executable java to read and write to a txt file
    By njoymirror in forum New To Java
    Replies: 2
    Last Post: 03-21-2009, 01:19 AM
  5. How Read and Write XMl files using Java
    By tjs in forum SWT / JFace
    Replies: 0
    Last Post: 02-23-2009, 12:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts