 		return 1;
 	}
 	fscanf(dfp, "%s %s %s\n", kind, name, type);
-	if(type == "float") {
+	if(!std::strcmp(type,"float")) {
 		printf("Error: Incorrect type, found: %s, %s, %s\n",kind, name, type);
 		fclose(dfp);
 		return 1;

#include "vtkio.h"
#include <stdio.h>

#include <iostream>
float orderSwap( float f )
{
	union

		std::cout << rstr;
	}
	fscanf(dfp, "%s %u %u %u", rstr, &n_x, &n_y, &n_z);
	if(!( n_x == N && n_y == N && n_z == N)) {
		std::cout<<"Warning: incorrect " << rstr << " read: expected 256, got: " << n_z << std::endl;
		fclose(dfp);
		return 1;
