User Data file?

Hello,

I have an XML file that contains that contains fuel rates. I need to come up with a way to copy the file to the users machine during setup and put it in a place where everyone running the application will have read/write permissions to the file.

The application will have a form that is hardcoded to interface with the file and display the contents in a DataGrid. The user can change the data via the datagrid.

I will also create a webservice will the app will also be able to update the local file from webservice.

I've been reading through the forum and have been looking at Isolated Storage but that looks to be specific to the user. Any user that logs onto the machine will be able to run the application, so this data file needs to be accessible to the application no matter who has it open.

It seems that the data needs to go in the All Users\Application Data directory. However, VS setup package doesn't appear to have an option to put data there. Also, I don't see a way to do this with Isolated Storage

Looking for other ideas.

Thanks.




Answer this question

User Data file?

  • Folyjon

    As a resource file I see no way of writing changes to it. That was my first though and where I have some other files but they are for read only.

    Think I've found a way to put it the all Users Application Directory that I'm hoping with work.



  • Hugo Batista

    why not add it a s resource file to the resources, then it will be on application level, and you will have acces to it through the application.

    You can put it in the userdatapath by adding it and setting it as data file but than as you said it will be specific to each user. i recommend you try the first method


  • User Data file?