Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading FileName consists of #

 
karthick sambanghi
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am facing little issue in reading the File Name

I am able to read the below Path contents

C:\DataRead\FBNK_ACCOUNTNAU_1.xml

But i am unable to read it from

C:\DataRead\FBNK_ACCOUNT#NAU_1.xml (Getting as System cannot find the file specified)

i think # is the problem in File Name. Kindly help me to resolve, how to read the file name Consists of #

Please provide me with Piece of example...

Regards/Karthick
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you show the code you used to read the file along with the error message?
 
karthick sambanghi
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeanne,

Thanks for the reply.

I am using the file Name directory in program arguments. Below is the Piece of code

public static int doWork(String args0)
throws IOException, SAXException,

ParserConfigurationException {
xmlFileName = args0;
}

Where args0 is the directory Path of the file. I am passing the directory path in Run configuration as program arguments.

For example :- When i pass args0 = C:\DataRead\FBNK_ACCOUNTNAU_1.xml (IT is working fine)

But the below one is not working

args0 = C:\DataRead\FBNK_ACCOUNT#NAU_1.xml

Please help me to rectify it.

Thanks in Advance..

 
Tony Docherty
Bartender
Posts: 2989
59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's not the code that is using the filename and you haven't supplied the error message as requested so it's a little hard to help you without guessing at solutions.
You could try wrapping the file path in quotes that sometimes helps on windows systems (are you even on a windows platform?)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic