Hey all
I do a bit of c programming for school and tried out xcode, played around a bit and finally figured stuff out, wrote my code, ran it, it works fine.
However, when i try to load a file to my code, it wont load in xcode....i have complied it in terminal and works fine
the file is called data.txt and IS in the same directory (remember it works fine with terminal)
g++ filename -o programname, it works fine....
anyone know how to load the file into xcode, i have tried my best...please check out the screenshot as well....
I do a bit of c programming for school and tried out xcode, played around a bit and finally figured stuff out, wrote my code, ran it, it works fine.
However, when i try to load a file to my code, it wont load in xcode....i have complied it in terminal and works fine
the file is called data.txt and IS in the same directory (remember it works fine with terminal)
g++ filename -o programname, it works fine....
anyone know how to load the file into xcode, i have tried my best...please check out the screenshot as well....