Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

writting to files

wisam_ywisam_y Member Posts: 5
Hi!! I want to write a servlet that can wirte and read from a .txt file.
my question is: where should i put the file?
i tried to let the servlet create the file to see where it will put it. but i couldnt find the file created.
any help from you will be appriciated

Comments

  • JonathanJonathan Member Posts: 2,914
    : Hi!! I want to write a servlet that can wirte and read from a .txt file.
    : my question is: where should i put the file?
    : i tried to let the servlet create the file to see where it will put it. but i couldnt find the file created.
    : any help from you will be appriciated
    :

    It's not just about where to put it, but also where the servlet has permission to write to. Or rather, allowing it to have write permissions on the place you wish to put the file.

    As for where to put it, you probably will want it outside of the document tree for the website itself, especially if it contains anything that needs to be kept safely.

    Hope this helps,

    Jonathan

    ###
    for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
    (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
    /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");

Sign In or Register to comment.