on the same track but well what i want this part of the program to do is...
take a location like "C:\documents and settings\ben\desktop\name" and subString the string so that only "\name" is left. the location is provided in this case from a DOS cmd piping dir into a text file and then java opens the text file and formats it and outputs an index.html file.
set classpath =
dir > temp.txt
copy c:\code\FormatText.class FormatText.class
^thats not all the code but you get the idea
since i cant change the string provided from the DIR command i could pipe the current directories name into the file before the DIR command. are there any prebuilt methods in java so i can easily insert the current directories name as a string.
Linux is obviously better suited to cope with this problem but i want my program to work on both platforms.