pankajpatil
Posts: 1
|
Posted: 01/29/2005, 6:46 AM |
|
can any tell me meaning of this line
file.substring(file.indexOf("filename=\"") + 10)
|
|
|
mrachow
Posts: 509
|
Posted: 01/29/2005, 1:00 PM |
|
indexOf will return the starting position of the string
filename="
substring with one parameter only will deliver the rest of the string starting at the specified position (this one parameter).
BTW I see a possibly problem here.
It looks like the starting apostrophe of the filename is passed here. But retrieving the substring in the above way will keep the apostrophe at the end with of filename.
_________________
Best regards,
Michael |
|
|
|