5:20 pm - Sunday October 22, 2017

To sepearate file using file seperator

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044

BACK

                                                                    To sepearate file using file seperator,The system dependent path separator string.

import java.io.File;</p>
public class FileSeparator

{

public static void main(String[] args)

{

System.out.println("File.separator = " + File.separator);

System.out.println("File.separatorChar = " + File.separatorChar);

System.out.println("File.pathSeparator = " + File.pathSeparator);

System.out
.println("File.pathSeparatorChar = " + File.pathSeparatorChar);

}

}

Output

          File.separator = /

          File.separatorChar = /

          File.pathSeparator = :

          File.pathSeparatorChar = :

BACK

Filed in: Java Examples

Comments are closed.