Link to home
Start Free TrialLog in
Avatar of locke2005
locke2005Flag for Brazil

asked on

opening files

For record...

if (!($f=fopen("welcome.txt","r")))
exit("Unable to open file!");

Can I open a file to read or write or read and write with an error message for a not opened file and without ")))"?


For record...

if
 (!
  (
   $f=fopen
    (
     "welcome.txt","r"
    )
   )
  )
 exit
  (
   "Unable to open file!"
   );

Can I open a file the way I wrote?
ASKER CERTIFIED SOLUTION
Avatar of AndyAelbrecht
AndyAelbrecht

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial