vl4kn0 17 Light Poster

on 36. line you have fp = open(argv[2], "r"); it should be fp = fopen(argv[2], "r");
Else you have declared variable char line[MAXSIZE]; but you don't use it in your code.

thanatosys commented: great help on a simple problem. +1
vl4kn0 17 Light Poster
#include <stdio.h>

int main(void)
{
	int sec_code = 0;
	while(sec_code < 1 || sec_code > 4) {
		scanf("%d", &sec_code);
		if(sec_code < 1 || sec_code > 4) {
			printf("Ivalid value entered. Must be 1 to 4, please re-enter: ");
		}
	}
}
WaltP commented: A WHILE loop is not a POSTtest loop +15
vl4kn0 17 Light Poster

I had Ubuntu and it realy is not way. Debian is good choice. But 1CD debian is useless. I prefer debian netinstall and if you will have any problems google is good, or you can try slackware, it is conservative distro but it has a lot of comments in configuration files.

lio04 commented: Very well dude! +1