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 155 views
1 answer 201 views
1 answer 134 views
1 answer 126 views
1 answer 147 views
1 answer 127 views
...