File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Linux / UNIX and the fly likes Jave File write in Unix Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Jave File write in Unix" Watch "Jave File write in Unix" New topic

Jave File write in Unix

Rashid Akhter

Joined: Jun 24, 2011
Posts: 1

Hi ,

I am working on htmlparser which contains some empty tag with whitespace like

<span some attributes> </span> ,

when I am trying to write this string to a file in unix sytem it is replacing white space with ? like <span some attributes>?</span>.

Please suggest if unix takes white space as a special character and how to get rid of '?' .


Zandis Murāns
Ranch Hand

Joined: Aug 18, 2009
Posts: 174

Please provide us with your code.
Pat Farrell

Joined: Aug 11, 2007
Posts: 4659

Rashid Akhter,

Can you please be more specific?

Unix/Linux treat some characters as special in file names and directory names, but not as characters within a file. Which are you concerned about?
I agree. Here's the link:
subject: Jave File write in Unix
jQuery in Action, 3rd edition