Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i create a file in my desktop then in my code (assembly8086 in linux) i try to open it but it return a negative filedescriptor!!

how can i solve this problem ?? i want a positive filedescriptor!!
Posted

1 solution

I suggest you read the documentation about the return values from system API functions. A negative value from a file open command means that the request failed. There should be some further information available from GetLastError (in Windows) or errno (Unix/Linux).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900