so funktioniert es in C++, aber wie in Delphi?
Zitat:
type C:\boot.ini | test.exe
Zitat:
//--------------------------------------------------------
#include <iostream>
//---------------------------------------------------------
using namespace std;
int main(int argc, char* argv[])
{
char buf[255];
while(cin)
{
cin.getline(&buf[0], 255);
if(!cin)
break;
cout << buf << endl;
}
}
//------------------------------------------------------