Ariful Islam
Ariful Islam

Reputation: 7675

File write permission to application directory in windows 7 in Flex

I am creating an AIR application using Flex. In it I use a file in application directory to store some data in it.Its working very well to read and write data to this file with various OS except windows 7. In windows 7 it is not working. May be its a permission problem.

How can i write file in the application directory with Windows 7 ?

Thanks Arif

Upvotes: 1

Views: 1126

Answers (2)

Aaron
Aaron

Reputation: 4614

Is User Account Control active on the system? Air may not be triggering a UAC prompt properly, but if it is on, depending on the access restrictions, you will need to have the user ok any changes to the Program Files folder(s).

Edit

Turns out you never have the ability to write to the path associated with File.applicationDirectory, at least as far as the documentation is concerned.

Upvotes: 1

JeffryHouser
JeffryHouser

Reputation: 39408

Have you tried using the user directory instead of the application directory to store data?

Instead of applicationDirectory use applicationStorageDirctory. Your app should always have access to write tot he latter.

Upvotes: 1

Related Questions