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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:57:37+00:00 2026-05-16T10:57:37+00:00

Currently my application takes in a text file/files, parses them into another file type

  • 0

Currently my application takes in a text file/files, parses them into another file type and puts them on disk. I then call a secondary program (not mine) to process THAT text file into a third.

The foreign program basically does one thing:

program.exe –input:foo.txt –output:bar.txt

What I would like to know… could I replace the foo.txt and bar.txt with string[] in my “object”.

Instead of pulling the information from the text file, and putting out into a new text file… I want to pull the info from the variable I have… into another variable I would make.

Basically I’m trying to save the process of creating two stacks of files via piping out of one variable into another. I’m just unsure of how to go about it.

What I have now (For the most part, with some fluff removed):

public bool _Out_Schema(string output)
{
    clear(output);                                      // clear output directory

    // Assign schema name to path
    string path = output + '\\' + lf.filename + ".schema";
    using (StreamWriter SW = new StreamWriter(path))
    {
        SW.Write(lf._schema);
    }                
    return true;
}

public bool _Out_UFD(string input, string output)
{
    clear(output);                                      // clear output directory

    ProcessStartInfo SI = new ProcessStartInfo();
    SI.CreateNoWindow = true;
    SI.WindowStyle = ProcessWindowStyle.Hidden;
    SI.FileName = "ufdschema.exe";                      // foreign program

    SI.Arguments = String.Format("--ischema={0}\\{2}.schema --oufd={1}\\{2}.ufd", input, output, (FI.Name.Split('.'))[0]);
    using (Process P = Process.Start(SI)) { P.WaitForExit(); }

    return true;
}

I’d like to take the lf.schema (string variable) as an input… and create something like lf.ufd as an output

  • 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-16T10:57:37+00:00Added an answer on May 16, 2026 at 10:57 am

    If the program doesn’t have a way to specify “read from stdin and write to stdout”, you can’t easily solve your problem. It is possible to do, however, but it will require some pretty lowlevel stuff; basically you’d use something like Detours to hook CreateFile, and make it attach to pipes when it sees special filenames. ReadFile, WriteFile and CloseHandle don’t need redirection, since they work with pipes as well as file handles.

    This is a non-trivial solution, but if you have Win32 API experience it’s doable within a couple of hours even if you have no prior knowledge of Detours.

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

Sidebar

Related Questions

Currently our Java application uses the values held within a tab delimited *.cfg file.
I'm currently creating an application for a customer that will allow them to automatically
An application currently in development has the requirements for using MS Word to perform
I currently have an application which needs to have an awareness of which monitor
I currently have an application that gets hit with over 20,000 users daily and
We're currently building an application that executes a number of external tools. We often
I'm currently developping an application in java using Hibernate as a persistence manager and
I am currently refactoring an application that prints its status to the console window.
I'm currently developing an application that is comprised of five separate executables that communicate
I am currently building an application using ASP.NET MVC. The data entry pages are

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.