view dis.c @ 4:8448e78efe82 default tip

Autmatic Win32 Porting
author VilyaemKenyaz
date Thu, 28 Sep 2023 13:20:56 -0400
parents a499c3c6b9ae
children
line wrap: on
line source

/*********************************************
* Description - Display a file, dis
* Author - William King
* Date - Sep 25 2023
* *******************************************/

#include <stdio.h> 
#include <stdlib.h>
#include <string.h>

#include "basedfilelib.h"

void main(int argc, char* argv[]){
	if (argc == 1 ) { puts("Dis by William King at Peep Soft\nDisplays a file to stdout, better than cat at this purpose\nUsage: dis (file)");exit(0);}
	//puts("Displaying:");
	char * filetoread = argv[1];
	char * file = ReadFile(filetoread);
	printf("%s\n",file);
	exit(0);
}