DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2004
    Posts
    14

    Question fileOutputStream colon(:) problem

    I'm using fileOutputStream to setProperty to a
    properties file.

    whenever i try to set something like

    abcd:efgh:ijkl it appears in the file as
    abcd\:efgh\:ijkl

    what is it ?

    Thank u.

  2. #2
    Join Date
    Sep 2004
    Posts
    223
    try replacing all of the colons in your code to be \: like the output, this should escape them and display them as you want them.
    Let me know what happens
    A kram a day keeps the doctor......guessing

  3. #3
    Join Date
    Sep 2004
    Posts
    14
    It isn't working.

    When i give \: the setProperty is \\\:
    Strange.
    Itried various combinations.They r worse.

  4. #4
    Join Date
    Oct 2004
    Posts
    311
    Since you are outputting characters only, I suggest you try writing to the file using a FileWriter instead of a FileOutputStream. This class is desined to handle characters, so should work better.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links