i checked this but it takes string as a parameter but write as a charactor
only in the file.so again space is there.

On Thu, Sep 3, 2009 at 7:35 PM, Justin Anderson <[email protected]>wrote:

> Why not use one of the methods from OutputStreamWriter that takes a string
> as a parameter?
> http://developer.android.com/reference/java/io/OutputStreamWriter.html
>
> ----------------------------------------------------------------------
> There are only 10 types of people in the world...
> Those who know binary and those who don't.
> ----------------------------------------------------------------------
>
>
>
> On Thu, Sep 3, 2009 at 6:15 AM, kapil.k <[email protected]> wrote:
>
>>
>> hello guys i am writing the data in text file with help of
>>
>>  fos = new FileOutputStream(file);
>>               out1 =new OutputStreamWriter(fos);
>>               out=new DataOutputStream(fos);
>>               String Dpass = new String ("1008");
>>
>>               out.writeChars(Dpass);
>>
>> but in file due to char it is leaving space after each charactor.so
>> how should i store so the will be no sapce.
>>
>>
>> also which api should i used to delete containt of the file?
>>
>> thank you
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to