Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Ensuring that the export location for a csv export actually exists
Topic Summary:
Created On: 21-Jul-2008 03:27
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Pranav Chandrasekhar, on Monday, July 21, 2008 1:14 PM

Answer:
Tony,
I cannot thank you enough for your prompt response to my post. I truly appreciate your help!!!!

Regards,

Pranav
 21-Jul-2008 03:27
User is offline View Users Profile Print this message


Pranav Chandrasekhar

Posts: 101
Joined: 16-May-2006

Hi All,
I have created a variant of the in-built "CSV export" script in DOORS. I have basically hidden the user interface and hard-coded all the export options - including the file location of the csv export. I was wondering if there is any DXL function that helps determine of the hard-coded file location is a valid one. I would appreciate it if you could let me know. Thank you.

Regards,

Pranav
Report this to a Moderator Report this to a Moderator
 21-Jul-2008 10:11
User is offline View Users Profile Print this message


Tony Goodman

Posts: 97
Joined: 6-May-2008

You can use stat to check for existance of files and directories.

-------------------------
Tony Goodman
Smart DXL limited
www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 21-Jul-2008 10:17
User is offline View Users Profile Print this message


Tony Goodman

Posts: 97
Joined: 6-May-2008

If you want to check that you can write to a file then use this.

bool canOpenFile(string pathname,
bool forWrite)
Operation
Returns true when the file pathname can be opened; otherwise, returns false. If forWrite is set to true, the file is opened for write and the current contents of the file are cleared. If forWrite is set to false the file is opened read only and the existing contents are unchanged.

-------------------------
Tony Goodman
Smart DXL limited
www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 21-Jul-2008 13:14
User is offline View Users Profile Print this message


Pranav Chandrasekhar

Posts: 101
Joined: 16-May-2006

Answer Answer
Tony,
I cannot thank you enough for your prompt response to my post. I truly appreciate your help!!!!

Regards,

Pranav
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.