i want to move a single file from a folder. i tried my level best. but the all the files from the folder is moving.
pls anyone is there to solve my problem.
hidash_in
-9
Junior Poster in Training
Recommended Answers
Jump to PostWell, post your code, but file.rename(), on a single file, shouldn't be beyond you.
Jump to Postbyte[] buf = new byte[1024]; int len; while ((len = in.read(buf)) > 0) { out.write(buf, 0, len); }
Personally, I don't use very often this kind of way to read files, but why don't you try what masijade has suggested with renaming the file. Do you have …
All 8 Replies
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
hidash_in
-9
Junior Poster in Training
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
hidash_in
-9
Junior Poster in Training
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
hidash_in
-9
Junior Poster in Training
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.