Liakat_Shikder's blog

By Liakat_Shikder, 3 years 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

| Write comment?
»
3 years 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)