0

hi
i want read text file and write in such way that each word in the separated by 2Spaces if they are separated by more than 2Spaces keep those 2space as it is and filled remaining space with xxxxxxxx
plz suggest to how go to this problem and give some code in java

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by javinpaul
0

hi
i want read text file and write in such way that each word in the separated by 2Spaces if they are separated by more than 2Spaces keep those 2space as it is and filled remaining space with xxxxxxxx
plz suggest to how go to this problem and give some code in java

Hi,

I can suggest you a way , check for space which is unicode character \u0020 and if it occurs more than that then replace as you want.

Thanks
Javin

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.