Getting separator symbol in Java

This snippet of code allows to get symbol which represents separator in your file-system:

System.getProperty("file.separator");
  • Share/Bookmark

Related posts:

  1. Getting working directory in Java
  2. Getting path to user’s home directory in Java
  3. Getting system root directory in Java
  4. Writing files in Java
  5. Reading files in Java

4 comments to Getting separator symbol in Java

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>