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

  • SEARCH
  • Home
  • 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 6808797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:59:59+00:00 2026-05-26T19:59:59+00:00

I have a Processing code which displays words from a text file. I have

  • 0

I have a Processing code which displays words from a text file. I have created a right click function which erases words from the screen if they are not wanted, so that next time the code is run, those words should not be seen. I created another file containing all the delimiters/words that are not required. How do I add the unwanted words to this file, on the right click? I hope my question is clear. Thanks a lot for all help!

  • 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-05-26T19:59:59+00:00Added an answer on May 26, 2026 at 7:59 pm

    When you start the application, I imagine you also load the delimiters/unwanted words text file and add those to a String[]. When there’s another right click, you append that right clicked word to the loaded String[] of unwanted words and then decide when you want to save the file(overwrite the previous definitions) – with a save button, using a timer, etc.

    Here’s a quick snippet to illustrate the idea:

    String[] unwantedWords;//array of words to be loaded from an external text file
    
    void loadUnwantedWords(){
      unwantedWords = loadStrings("unwanted.txt");//load words from text file 
    }
    void saveUnwantedWords(){
      saveStrings("unwanted.txt",unwantedWords);//save words to text file
    }
    void addUnwantedWord(String word){//call this on your right click event
      unwantedWords = append(unwantedWords,word);//append a new value to the existing unwanted words array
    }
    

    Note that normally and Array has a fixed size, but Processing’s append() function allows you to add new values to an existing array. Once you’re array is updated, all you need to do is save it back to the text file, so the new definitions will be there when you restart the application

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple MFC program which displays the progressbar..I used the below code
I have a code in processing which contains points moving randomly. Those points seek
I'm developing some code which reads file names from an sd-card (using FatFs) and
I have lots of code which is doing some data processing (in C# to
I have a text input : <input type=text onkeydown=processText(this) /> I have a processing
I have a Windows Forms application containing around 15 different buttons which on-click should
We have an ASMX web service which we invoke from our ASP.NET application using
I have an application which displays modal views. In the last modal view, I
I have a Thread processing a binary file and storing it in a datatable.
I have a small PHP Mysql function which generates all the columns within a

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.