Java Coder
What is a file Separator?
1 Answer(s)      3 years and 11 months ago
Posted in : Java Beginners

What is a file separator in Java Program?


View Answers

March 26, 2013 at 11:45 AM


The file separator is nothing but a character that we used to separate directory path names for a particular location. These file separator differently used in different operating system and this file separator is operating system dependent. For Microsoft Windows operating system we used back-slash character (), where as for Mac OS or unix based operating system, it is forward slash(/). You can find syntax with examples for file separator in Java in this link.