0

I currently have the input file hard coded in the C++ code:

     constexpr auto SELECTED_COLLEGES {"rva-ceeb-working.txt"};
     std::ifstream ifs {SELECTED_COLLEGES, std::ios::in};

I intend to change the code to use standard input instead. When I run the program from the command line I will specify the file as:

     $ aptcp <rva-ceeb-working.txt

How do I tell Cevelop/EclipseC/C++ that when it runs the program to use rva-ceeb-working.txt for standard input?

Cevelop C++ IDE
Version: 1.8.0-201707131430

Eclipse C/C++ Development Tools
Version: 9.3.0.201706122201
Build id: @build@

Eclipse Help
Version: 2.2.100.v20170612-0950
Build id: I20170612-0950

OS: Linux, v.4.10.0-37-generic, x86_64 / gtk 3.22.11
CW Holeman II
  • 4,661
  • 7
  • 41
  • 72
  • If you are going to pipe input to your program you would use `std::cin` instead of `std::ifstream`, the latter is to read from disk – Cory Kramer Feb 06 '18 at 18:51
  • @CoryKramer does that "tell Cevelop/EclipseC/C++ that when it runs the program to use rva-ceeb-working.txt"? – CW Holeman II Mar 16 '18 at 23:20

1 Answers1

0

Run > Run Configurations... > Common > Input File

enter image description here

CW Holeman II
  • 4,661
  • 7
  • 41
  • 72