How to open a text file that is already open?

Cem_Karaer
Member Posts: 281
Hello,
I want to open a text file read-only in Dynamics NAV 2009 R2 Classic client which is already opened by some other application.
command raises exception. Is there any other way to do this?
I want to open a text file read-only in Dynamics NAV 2009 R2 Classic client which is already opened by some other application.
File.OPEN(..)
command raises exception. Is there any other way to do this?
Cem Karaer @ Pargesoft
Dynamics NAV Developer since 2005
Dynamics NAV Developer since 2005
0
Comments
-
Hi Cem Karaer
Is the file open cause it is still being written to?
When importing a file we check the file size every no. of seconds to see if its changing - hence still be written to. If so then if say part of a Job Queue then try again later - say 30 mins!
If the file is permanently open then I would say your out of luck as it is the operating system that is saying that the file is already open!
Good luckBig D signing off!0 -
Big D wrote:Hi Cem Karaer
Is the file open cause it is still being written to?
When importing a file we check the file size every no. of seconds to see if its changing - hence still be written to. If so then if say part of a Job Queue then try again later - say 30 mins!
If the file is permanently open then I would say your out of luck as it is the operating system that is saying that the file is already open!
Good luck
Hi Big D,
Thank you for your interest. In fact the text file is to hold caller phone number information that is updated by the IVR system. Unfortunately it is permanently open by the IVR. It is possible for me to dictate the IVR side how to open the file. For example if the IVR system opens the file in share-mode and writes to it not closing, is it possible to read the file?Cem Karaer @ Pargesoft
Dynamics NAV Developer since 20050 -
Hi Cem Karaer
Thanks for the further information.
Unless the IVR System can be encouraged to open, read/write and close the file periodically then my answer is you probably can't even read the file. Does the IVR System have any reporting tools - that could generate another means to accessing the required data?
Good luck - sorry I couldn't of been of more help.Big D signing off!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions