fileOutputStream colon(:) problem


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: fileOutputStream colon(:) problem

  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.

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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center