Recently I wokring on JAVA in windows platform.
I was able to write new line character in WINDOWS into a text file.
[code=java]
FileWriter.writ e("\r\n");
[/code]
but is it valid for all OS family.
I think it is not . ..so frnds is there any api that JAVA takes responsibility to write this according to native OS.
We need to take haedache to d this.
Is there any?
Pls help me.
Kind regards,
Dmjpro.
I was able to write new line character in WINDOWS into a text file.
[code=java]
FileWriter.writ e("\r\n");
[/code]
but is it valid for all OS family.
I think it is not . ..so frnds is there any api that JAVA takes responsibility to write this according to native OS.
We need to take haedache to d this.
Is there any?
Pls help me.
Kind regards,
Dmjpro.
Comment