How to print (type) a text file using system in windows with C

1 Answer

0 votes
#include <process.h>

int main(void)
{
	system("type d:\output.txt");

	char ch = getchar();

	return 0;
}




/*
run:

text in text file

*/

 



answered Apr 12, 2022 by avibootz

Related questions

1 answer 354 views
1 answer 383 views
1 answer 319 views
1 answer 307 views
1 answer 334 views
1 answer 352 views
...