JulitoPeligro's blog

By JulitoPeligro, history, 2 years ago, In English

Hi, the input file is so big that my vscode and sublime crashed and now I am not able to run it anywhere and get my output! Can anyone pls help me regarding this?

  • Vote: I like it
  • -6
  • Vote: I do not like it

| Write comment?
»
2 years ago, # |
Rev. 9   Vote: I like it 0 Vote: I do not like it

You don't have to open the input data file for viewing inside the program editor. Just use the file name to open it at run-time, and read the data from the file input stream at run-time as if it is read from the standard input stream. Best wishes.

»
2 years ago, # |
  Vote: I like it +4 Vote: I do not like it

you can run this a.exe < input.txt > output.txt

»
2 years ago, # |
  Vote: I like it +5 Vote: I do not like it

it is still buffering in cmd and not printing at all

  • »
    »
    2 years ago, # ^ |
    Rev. 2   Vote: I like it 0 Vote: I do not like it

    then it might it becuase u have some bug in your code.If u r confident your code is right and will complete execution then pls share how u r reading from files.(sometimes putting wrong filename also causes the buffering issue in sublime)

    • »
      »
      »
      2 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      cf.exe <fbip.txt> output.txt i used this fbip is my input file and cf is my c++ code file please help me!

      • »
        »
        »
        »
        2 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        does the file exists at same place where cf.exe is there.?

        If u still get problem use this two lines at the start of main function

            freopen("input.txt", "r", stdin);
            freopen("output.txt", "w", stdout);
        

        write full path of input and output

»
2 years ago, # |
  Vote: I like it +5 Vote: I do not like it

You may see this.