Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. XmlTextReader in PDA

XmlTextReader in PDA

Scheduled Pinned Locked Moved C#
helpxml
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AhsanS
    wrote on last edited by
    #1

    Hello fellows. I hope all you will be doing fine. dears i have a problem at hands and have done everything. I am doing a project for PDA.i want to read a Xml file from drive c. but when ever i deploy the project it says that the file is not located.check the path.this error is generated on run time. i am using the following code. FileStream fs = new FileStream(@"c:\\xmldata.xml", FileMode.Open); XmlTextReader reader = new XmlTextReader(fs); kindly help me out. Its urgent. Ahsan Ullah

    C 1 Reply Last reply
    0
    • A AhsanS

      Hello fellows. I hope all you will be doing fine. dears i have a problem at hands and have done everything. I am doing a project for PDA.i want to read a Xml file from drive c. but when ever i deploy the project it says that the file is not located.check the path.this error is generated on run time. i am using the following code. FileStream fs = new FileStream(@"c:\\xmldata.xml", FileMode.Open); XmlTextReader reader = new XmlTextReader(fs); kindly help me out. Its urgent. Ahsan Ullah

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Ahsan-AhsanS wrote:

      I am doing a project for PDA.i want to read a Xml file from drive c. but when ever i deploy the project it says that the file is not located.check the path.this error is generated on run time. i am using the following code.

      That's because your PDA does not have a "Drive C"


      "On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question." --Charles Babbage (1791-1871) My: Website | Blog

      A 1 Reply Last reply
      0
      • C Colin Angus Mackay

        Ahsan-AhsanS wrote:

        I am doing a project for PDA.i want to read a Xml file from drive c. but when ever i deploy the project it says that the file is not located.check the path.this error is generated on run time. i am using the following code.

        That's because your PDA does not have a "Drive C"


        "On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question." --Charles Babbage (1791-1871) My: Website | Blog

        A Offline
        A Offline
        AhsanS
        wrote on last edited by
        #3

        than how can i give it the path to my c drive.i want it to read the file from my pc's c drive.plzzzzz help me out. Ahsan Ullah

        Y 1 Reply Last reply
        0
        • A AhsanS

          than how can i give it the path to my c drive.i want it to read the file from my pc's c drive.plzzzzz help me out. Ahsan Ullah

          Y Offline
          Y Offline
          Yustme
          wrote on last edited by
          #4

          Hi, This is how you give up the path: "xmldata.xml" Without the 'c' and the '\\'.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups