android - Use string as a filename -
i need help. have android app. using edittext string. create file something.txt , write info in it. how can set file name mystring.txt ?
try { author = new filewriter(root + "/filename.txt",true); } grab (ioexception e) { e.printstacktrace(); }
i need cause need have info different filename app... thanks
you have use
string desiredfilename = edittext.gettext().tostring(); seek { author = new filewriter(root + "/" + desiredfilename + ".txt",true); } grab (ioexception e) { e.printstacktrace(); }
android string filenames filewriter
No comments:
Post a Comment