title image


Smiley Re: Hiiiiiiiiiiilfe!! C++ Anfänger
Hi ...#include fstream.h// argc = number of parameters// argv[] = the parametersint main(int argc,char *argv[]){ char line[10]; ifstream fin(argv[1]); // for Text-File //ifstream fin(argv[1],ios::binary); // for Bin-File if(fin.fail()) { cout return 1; } fin.getline(line,10); // for Text //fin.read(line,10); // for Bin cout fin.close(); return 0;}

geschrieben von

Login

E-Mail:
  

Passwort:
  

Beitrag anfügen

Symbol:
 
 
 
 
 
 
 
 
 
 
 
 
 

Überschrift: