Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
500 B
3
Indexable
Never
#include <stdio.h>


int main() {
    char newString[60][48]; 
	FILE *ptr_readfile;
	
	char line [128]; 
	int filecounter=1, linecounter=1;

	ptr_readfile = fopen("dhcpkayit.txt","r");
	if (!ptr_readfile)
		return 1;

	while (fgets(line, sizeof line, ptr_readfile)!=NULL) {

		for (int i = 0; i < 60; i++)
            for (int j = 0; j < 48; j++)
                newString[i][j]=*line;
                
        
		linecounter++;
	}
    
	fclose(ptr_readfile);
	return 0;
}