cannot read an already opened .csv file using stream reader object

cannot read an already opened .csv file using stream reader object

Page 1 of 1

2 Replies - 5568 Views - Last Post: 11 April 2008 - 08:36 AM Rate Topic: -----

#1 Rajasree  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 10
  • Joined: 27-February 08

cannot read an already opened .csv file using stream reader object

Posted 11 April 2008 - 05:23 AM

hi,

Not able to read an already opened .csv file using stream reader object.
Any other way to read an open .csv file through code .?

please help ..
Is This A Good Question/Topic? 0
  • +

Replies To: cannot read an already opened .csv file using stream reader object

#2 zakary  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 27
  • View blog
  • Posts: 427
  • Joined: 15-February 05

Re: cannot read an already opened .csv file using stream reader object

Posted 11 April 2008 - 05:38 AM

reading a file in code should only really be done in the code, What I would suggest is you check to see if the file is open and if so, you close the file then open it back up in the streamreader
Was This Post Helpful? 0
  • +
  • -

#3 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 418
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: cannot read an already opened .csv file using stream reader object

Posted 11 April 2008 - 08:36 AM

Unfortunately you are going to have to work with the file closed. The issue is that when you have the file opened in an external application it locks the file to prevent other applications from editing it.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1