Hey
I'm having trouble importing files into my C++ code:
The trouble is probably that "SizeImage.txt" is not in the right folder(But I thought it was). So my question is where in Xcode 4 do I specify the folder that I want to use for my "input" folder, And if you could tell me where I specify the output folder as well that would be great.
I'm having trouble importing files into my C++ code:
Code:
#include <iostream>
#include <fstream>
#include <assert.h>
#include <math.h>
#include "Matrix.h"
using namespace std;
int main() {
// Open File
string line;
ifstream myfile;
myfile.open("SizeImage.txt");
if (myfile.good())
{
while ( ! myfile.eof())
{
myfile >> line;
cout << line << endl;
}
myfile.close();
}
else cout << "Unable to open file"<< endl;
return 0;
}
The trouble is probably that "SizeImage.txt" is not in the right folder(But I thought it was). So my question is where in Xcode 4 do I specify the folder that I want to use for my "input" folder, And if you could tell me where I specify the output folder as well that would be great.