0

I want to execute a program which takes in 1 text file(say like Text.exe), I want to use this output(also txt) for future use in C# program. I'm thinking of using a Perl Script to execute that (the script does some other stuff as well), but not quite sure how to call the .exe in Perl script. I'd appreciate any suggestion.

1

2 Answers 2

1

Use back ticks:` if you need to capture output from program.

my $output = `program.exe`;

You can find more details on different IPC methods available in Perl in perlipc.

Sign up to request clarification or add additional context in comments.

1 Comment

He's saying that the output is written in a txt file, so it will not capture it in this way.
0

Use:

system("c:\somepath\program.exe");

You can add arguments to the string.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.