| Author |
Saving a file to a relative path
|
Naadir Peterson
Ranch Hand
Joined: Sep 22, 2004
Posts: 37
|
|
every day a log file has to be generated and is named according the date... how do i save that file into a path eg. /dir/logs it works wen i save it in.. for instance c:/dir/logs.. but i dont want the "c:" since the program could be loaded on any drive... i created a method that creates a new file everyday and appends details to the file... String file = date+".log" appendLogFile("/direcory/" + file); thanx
|
 |
Shailesh Chandra
Ranch Hand
Joined: Aug 13, 2004
Posts: 1076
|
|
better idea would be , make an environment file either xml or else and keep path in same file or if you are doing any database operation you can keep path in database
|
Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
|
 |
 |
|
|
subject: Saving a file to a relative path
|
|
|