can't load a shader from a .txt file

My first attempt with shaders in OF.
When I try to load a vertex and fragment shader from 2 separate text files, then I get the message
**
OF: OF_LOG_ERROR: Could not load shader of type GL_VERTEX_SHADER from file hemisphere_vert.txt
OF: OF_LOG_ERROR: Could not load shader of type GL_FRAGMENT_SHADER from file hemisphere_frag.txt
**

Why is this?

  
void testApp::setup(){  
	   
        ofShader myShader;  
  
        ofBackground(0, 0, 0);  
	ofSetFrameRate(60);  
	ofDisableArbTex();  
	  
	myShader.setupShaderFromFile(GL_VERTEX_SHADER, "hemisphere_vert.txt");  
	myShader.setupShaderFromFile(GL_FRAGMENT_SHADER, "hemisphere_frag.txt");  
	  
	myShader.setUniform3f("LightPosition", 0.0f, 2.0f, 4.0f);  
	myShader.setUniform3f("SkyColor", 0.88f, 0.9f, 1.0f);  
	myShader.setUniform3f("GroundCOlor", 0.1f, 0.1f, 0.1f);  
						    
						    
	myShader.linkProgram();  
	  
  
}  
  

I have imported the files into the project in Xcode and have no other errors… ???

Well, I copied the .txt files into the bin\data folder, and now it works.

testApp.cpp

  
//--------------------------------------------------------------  
void testApp::setup(){  
	ofBackground(0, 0, 0);  
	ofSetFrameRate(60);  
	//ofDisableArbTex();  
  
	myShader.setupShaderFromFile(GL_VERTEX_SHADER, "hemisphere_vert.txt");  
	myShader.setupShaderFromFile(GL_FRAGMENT_SHADER, "hemisphere_frag.txt");				    
	myShader.linkProgram();  
	  
  
}  
  
//--------------------------------------------------------------  
void testApp::update(){  
  
}  
  
//--------------------------------------------------------------  
void testApp::draw(){  
	  
	myShader.begin();  
	myShader.setUniform3f("LightPosition", 0.0f, 2.0f, 4.0f);  
	myShader.setUniform3f("SkyColor", 0.88f, 0.9f, 1.0f);  
	myShader.setUniform3f("GroundColor", 0.1f, 0.1f, 0.1f);  
	ofSphere(ofGetWidth()/2, ofGetHeight()/2, 32,200);  
	myShader.end();  
}