MK27, once again you come to my rescue. It is really appreciated.

Not sure if it's just me but the site availability seems bad tonight. Keep getting a database error returned.

Thanks for the reply.

Code:
void getPassword(char *username, char *password)
{
	FILE *logon_file;
	logon_file = fopen("users.txt", "r+a");
	char tmp[50];
	int userLength = strlen(username);

	while(fgets(tmp, 50, logon_file))
	{	
		if(strstr(tmp, username))
		{
			int i; 
			for(i = 0; i<userLength; i++)
			{
				tmp++;   <-----  lvalue required as increment operand

				strcopy(password, tmp);
			}
		}
		
	}
	fclose(logon_file);
}
I made a few changes but it won't compile. I get the above error. It really is these pointers etc that are my stumbling block. I'm still having to code java at the same time and have coded java for quite a bit so its making it a little more difficult.

Thanks again.