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 167 views
1 answer 215 views
1 answer 150 views
1 answer 142 views
1 answer 161 views
1 answer 144 views
...