Monday, 12 January 2015

File address


hi all.
i'm new forum.
i'm going mad little problem.
i'm programming xcode using c language. need open file , read it. use fopen open , fread copy informations inside file.
problem fopen: how can find correct address file? mean, tried copy address starting /users/name_users/fullpath/myfile.jpg pointer point null(it means, nothing happens).
tried check if address correct command line answer folder doesn't exist: "imac-di-andrea:~ andreacondorelli$ /users/andreacondorelli/prova c/prova/prova/compressione/compressione/compressione
-bash: /users/andreacondorelli/prova: no such file or directory
imac-di-andrea:~ andreacondorelli$ /"

if try open file desktop, read "/users/andreacondorelli/documents/test.jpg
-bash: /users/andreacondorelli/documents/test.jpg: permission denied"

maybe problem permission.
c code
file *fp1;
char nome[100];
[...code here ...]
fp1=fopen(nome,"rb");
 

there's tiny little bit missing in c code. wonder why didn't post it. because absolutely sure that part of code bug free? that's find bugs.
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

No comments:

Post a Comment