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 8922117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:45:07+00:00 2026-06-15T06:45:07+00:00

I think the correct term is piping but I hope someone will confirm/correct this.

  • 0

I think the correct term is “piping” but I hope someone will confirm/correct this.

Essentially, I would like to set my program to open up a file in a plotting program or text editor to be viewed (so I don’t have to type it into the command line).

Is there a nice way of doing this? I have only opened and closed files so far so I am not sure where to start with opening them in a program.

  • 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-06-15T06:45:09+00:00Added an answer on June 15, 2026 at 6:45 am

    Sounds like you want the Process class.

    Process p = Runtime.getRuntime().exec(“notepad C:\boo.txt”);

    This will start the program “notepad” in a process, giving it the argument “C:\boo.txt” (which, for this example, will open that file using notepad). If all you want to do is start the program, you’re done once you have this in. If you wish to play with command line input/output, you can use the process’ streams eg:

    BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream()));
    PrintWriter stdOut = new PrintWriter(p.getOutputStream());

    The notepad example is Windows-specific, but the idea is the same in any case. The string passed to exec() will be run as if it were input on the command line for the OS on your machine.

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

Sidebar

Related Questions

I'm trying to think of the correct design for a web service. Essentially, this
I have searched and searched for this but I think my terminology isn't correct
Excuse the poor title, i can not think of the correct term. I have
The following C++ code i think is correct, but produce some warnings when compiled
I'm trying to bind parameters in what I think is the correct way, but
What do you think? Is this correct or are there memory leaks? Source: #include
I have 2 lists, each with multiple variables (I think this is the correct
I'm not sure if 'architecture' is the correct term, but I've been looking for
My C#-program should be by opening perform a powershellfunction, looks like this: function RunIE
I think my mind is blanking, but what is the correct terminology for the

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.