codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  path delimiters  darrenls59 at 14:45 on Sunday, April 30, 2006
 

is there such a thing as a platform independent path delimiter? I would use \ but that's not Posix and / isn't Windows.

Thanks


  Re: path delimiters  crwood at 16:31 on Sunday, April 30, 2006
 

As long as you are working within java you can use the forward slash. If reading/writing to the hard drive you can use the System "getProperty" method to get the platform-dependent tokens for line and path separators

int newline = System.getProperty("line.separator")

and use it in your code.

  Re: path delimiters  darrenls59 at 04:57 on Monday, May 01, 2006
 

Well the intention is to check if a path name read from a jar file or a zip file has path delimiters








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  IE Only comeback
•  Re: java app auto web update..
•  ` Error Code 64: Host not available ` - Error when accessing ASP Appln
•  Re: dynamic crystal report generation
•  Launch an app remotely through a website
•  Run an app in my pc from another pc
•  a:hover elements
•  Rearranging elements in a table
•  window.open giving http404 error


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007