Search:
Type: Posts; User: zebbi
Search:
Search took 0.03 seconds.
-
June 10th, 2009, 05:02 PM
I have a program that writes data to a file as part of its functionality, however the way it is programmed means it can only write one String and i wish for it to be able to write more than this; a...
-
if they did enter yes or no, i would want the user to have to enter quit, the execution of other code in the program and thus other functions of the program should just happen automatically, a user...
-
sorry it was probably me not being clear then.
If they enter "yes" then thats fine and the program will go ahead and write data, if they enter "no" then thats fine again and the program will not...
-
but that wouldn't allow the original question prompt to be displayed again and the program operate as normal from that point on again, should they happen to enter anything other than "yes" or "no"...
-
I have some code within a main method that asks a user if they would like to write data to a file, and depending on their input answer at the prompt, which can be either "yes" or "no", it either asks...
-
April 8th, 2009, 11:12 AM
Hi, how would one go about retreiving the last accessed and created time of a file in JAVA?
I can't find any examples on google, and wondered if anyone here knew.
Thanks
-
April 6th, 2009, 01:35 PM
hi, i have a class in my program that displays the last modified time of a file (passed into the method in the parameter "filepath"), but when it diplays it, it isn't really a human readable number,...
-
March 31st, 2009, 05:11 PM
Thanks program this, i'll do that for all of my classes, and have for the DeleteFile class, however i still have the problem that the file doesnt get deleted, i still get the "deletion failed"...
-
March 31st, 2009, 10:01 AM
its for a college project and we had to use uml and clas diagrams, and so although all of what my program is doing could be done with static methods really (as it used to be, i have converted it into...
-
March 31st, 2009, 07:58 AM
I don't see how it can be a problem with permissions because when i go to the file directly, click it and press the delete button it is sent to the recycle bin as normal, does this mean it can't be...
-
March 30th, 2009, 07:05 PM
I've tried printing out the parameter and the path is being passed and processed because the error message says "failed to delete.. (and then the path)", so the path parameter is passed and then...
-
March 30th, 2009, 02:44 PM
I call a class in my main class and method with an if statement depending on the users answer "yes" or "no" like so:
System.out.println("Would you like to delete this file? (yes\\no)\n");
...
-
March 14th, 2009, 08:58 AM
here is the calculateMD5 method with the catch for NoSuchAlgorithmException added:
public static void calculateMD5(String path) throws NoSuchAlgorithmException, FileNotFoundException
{
...
-
March 14th, 2009, 06:02 AM
I have read up on exceptions, but i can't find anything that explains how to deal with this problem i have. I know exceptions must be either caught in the method they are thrown or caught by another...
-
March 13th, 2009, 06:03 PM
i thought the method was declaring the exception in:
public static void calculateMD5(String path) throws NoSuchAlgorithmException, FileNotFoundException
I am unsure of how to update this code...
-
March 13th, 2009, 10:25 AM
OK lol. i have one last problem, i have included that md5 method in a program, instead of hard coding the path to a file to be MD5'd into the method, i've altered it so that a parameter named "path"...
-
March 13th, 2009, 08:48 AM
thats great thanks, i thought it was a relatively simple problem. by the way, has anyone ever written a program to generate sha1 hashes of files in JAVA? or know of a good tutorial?
-
March 13th, 2009, 06:49 AM
Hi, i'm trying to compile some example source code i found on the net to calculate an md5 hash for a file. but i get errors and i'm not sure how to correct the code. Sorry i'm new to the language....
-
March 12th, 2009, 01:13 PM
sorry double posted by mistake lol, don't think i could delete? thanks
-
March 12th, 2009, 01:12 PM
I'm having problems with the following if statement, if the user enters "yes" at the console, i want the statement to write to the file (as you can see), however if the enter "no" i want it to print...
|
Click Here to Expand Forum to Full Width
|