i read from a file okay
for each line i save the respective data into their respective variables
i output each variable to see if the data has really been saved.(is has)
but when i try using the if condition to check the variable and perform a function
it doesn't work and always go to the last else condition and displays "Not Working", Please Help.
if you want to read all the lines in the file then make line 26 a while statement, not an if statement.
strEmployeeCategory == "J")
You can't do that with character arrays. You have to call strcmp() to compare two character arrays like this if( strcmp(strEmployeeCategory, "j") == 0)
strcmp() returns 0 if the two strings are identical, or something else if they are not the same. If all you need to do is check the first character in strEmplooyeeCategory then you can use this instead: if( strEmployeeCategory == 'j')