Liakat_Shikder's blog

By Liakat_Shikder, 3 weeks ago, In English

I have recently moved from windows to ubuntu 20.04. I need a build system for sublime text 3 for ubuntu which includes followings features :

  1. It should build and run the current opened file in C++14
  2. It should take input from a file named "input.txt" and show the output in sublime console.

There are many available sublime build system but none of them has the feature 2.All of them show results to another file not in sublime console. Thank you for your time and excuse my bad english.

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

»
3 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

You can add a line in your code to do what you want freopen("input.txt","r",stdin)

  • »
    »
    3 weeks ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    All the online available build system does that.What I want is to stop showing the result in output.txt instead to show it in sublime console