alibax
asked on
Date and Time stamp - in C programming language
Hi! I'm trying to make a program in either C/ java/vb which captures the name of the files/directory date, time of when the files or directory was created, modified, accessed. This data should be stored into a Database. The date and time should be updated when the file is modified; lets say the next day (we going to have a date comparison). In short, the program should capture the the name of the files/directories, date and time of files created, date and time of file modified, accessed. I'm a beginner in C/ java language and any start of the process of coding would be appreciated.
Many thanks
Many thanks
Use a FileMonitor
What OS are you targetting? For Windows, see http://msdn2.microsoft.com/en-us/library/aa365200.aspx ("Listing the Files in a Directory") - the time information then is available for each file using 'GetFileTime()' (http://msdn2.microsoft.com/en-us/library/ms724320.aspx)
For Linux, that would be
#include <stdio.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
int main(int argc, char **argv)
{
DIR *dirHandle;
struct dirent * dirEntry;
struct stat buf;
dirHandle = opendir(".");
if (dirHandle) {
while (0 != (dirEntry = readdir(dirHandle))) {
puts(dirEntry->d_name);
stat(dirEntry->d_name,&buf );
printf( "Time modified : %s", ctime( &buf.st_atime ) );
}
closedir(dirHandle);
}
}
For Linux, that would be
#include <stdio.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
int main(int argc, char **argv)
{
DIR *dirHandle;
struct dirent * dirEntry;
struct stat buf;
dirHandle = opendir(".");
if (dirHandle) {
while (0 != (dirEntry = readdir(dirHandle))) {
puts(dirEntry->d_name);
stat(dirEntry->d_name,&buf
printf( "Time modified : %s", ctime( &buf.st_atime ) );
}
closedir(dirHandle);
}
}
The simplest way would be to do a (on Windows) system ("DIR C: /S /B >foo" ) and on Unix system( "ls -lR / >foo" ), then read in the file "foo". THen use SQL to create and populate a database.
Or for a little bit more speed, use opendir() readdir() closedir(). Use google "Man readdir" for info.
Or for a little bit more speed, use opendir() readdir() closedir(). Use google "Man readdir" for info.
>>and on Unix system( "ls -lR / >foo" ),
No - you'd have to call stat for the info required
No - you'd have to call stat for the info required
following give a good example and discussion to get you started:
http://www.javaworld.com/javaworld/javatips/jw-javatip125.html
http://www.javaworld.com/javaworld/javatips/jw-javatip125.html
Let me know if you get stuck and I can help you further :)
ASKER
Hi!
Thanks for the responce I'm working on it and i shall get back soon....
Thanks for the responce I'm working on it and i shall get back soon....
ASKER
Sorry Guys for a late reply. I have come back again on this lilttle project. I was wondering before I start coding is there a model like if i was designing a Database i would think of Entity Relation Models, context diagrams, DFDs etc and is there some sort of design for a timestamp? and where is the time/date stored in windows?..... is it in the file system driver?. I am trying to understand how it works first before attempting going any further.... any help would be appriciated.
Many thanks
alibax
Many thanks
alibax
All of the information is internal to the file system in question. Of course, each different file system has different metadata
ASKER
Hi!
I have managed to get the last modified time, as there is a method for it in File class but not the other times. I was wondering how will I be able to get the creation and access times ? I have attached a java source code.
Many thanks
Alibax
I have managed to get the last modified time, as there is a method for it in File class but not the other times. I was wondering how will I be able to get the creation and access times ? I have attached a java source code.
Many thanks
Alibax
package timestamp;
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args)throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter file or directory name : ");
File filename = new File(in.readLine());
// check to see if its a directory
if (filename.isDirectory()){
// check to see if its a file
if (filename.exists()){
long t = filename.lastModified();
// get a directory name
System.out.println("Directory name : " + filename.getName());
System.out.println("Directory modification date and time : " + new Date(t));
}
else{
System.out.println("Directory not found!");
System.exit(0);
}
}
else{ // check to see if the file name exists
if (filename.exists()){
long t = filename.lastModified();
System.out.println("File name : " + filename.getName());
System.out.println("File modification date and time : " + new Date(t));
}
else{
System.out.println("File not found!");
System.exit(0);
}
}
}
}
The problem is that different OSs have different filesystems with different methods of timestamping. You need to call the OS or use JNI to cope with that
ASKER
But most windows have a standard NTFS file system now and the data about time stamp is stored in one the Metafiles (MFT), you would think there will be one conventional way to retrive these files given for all NTFS. And why is there a method to retrive last modified time only and not others times?.
And JNI? does this mean I will have to write in different language and incooperate it with java??
I know a bit of C but if i knew a lot more then I would use just C. Is there a anotherway in Java?
And JNI? does this mean I will have to write in different language and incooperate it with java??
I know a bit of C but if i knew a lot more then I would use just C. Is there a anotherway in Java?
>>But most windows have a standard NTFS file system now
Yes, but that's *one* OS of many. Java is a cross-platform language ...
>>And why is there a method to retrive last modified time only and not others times?.
I thought i'd explained that above
>>And JNI? does this mean I will have to write in different language and incooperate it with java??
Yes - C/C++
>>Is there a anotherway in Java?
There could be a command line utility for NTFS alone (if that's what you're interested in) that you can execute with Runtime.exec
Yes, but that's *one* OS of many. Java is a cross-platform language ...
>>And why is there a method to retrive last modified time only and not others times?.
I thought i'd explained that above
>>And JNI? does this mean I will have to write in different language and incooperate it with java??
Yes - C/C++
>>Is there a anotherway in Java?
There could be a command line utility for NTFS alone (if that's what you're interested in) that you can execute with Runtime.exec
ASKER
This is so much advance for me. The problem is now I dont know where to begin. I am only trying to display date and times of files in windows by creating a small program which does that but it seems to be a big job from what your saying since I am not advance user. I will read around on C to see if i will be able to implement with!!
Many thanks anyway....
Many thanks anyway....
If you're only interested in supporting Windows, try my second suggestion - it's easier
ASKER
You mean the "java.lang.Runtime.exec()" class ?? I dont know how to start or even use such class! have u got any example where this method was used. That might give me a head start because know I dont know anything at all.. Sorry for the trouble I am still learning the language.
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
But i don't know what utility you'd use. Ask in the XP TA
But i don't know what utility you'd use. Ask in the XP TA
ASKER
Hi!
The command that is used to retrieve times dir/t* (* = the type of time) for example access time the command will be "dir/ta". I am trying to implement in congestion with a user inputing the name of the directory or file name but this proves difficult.... as it doesnt run .... code attached below:
The command that is used to retrieve times dir/t* (* = the type of time) for example access time the command will be "dir/ta". I am trying to implement in congestion with a user inputing the name of the directory or file name but this proves difficult.... as it doesnt run .... code attached below:
package timestamp2;
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException{
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
//System.out.println("Enter file or directory name in proper format to get the modification date and time : ");
System.out.println("Please Enter Directory or File Name" );
File filename = new File(in.readLine());
Runtime rt1= Runtime.getRuntime();
//creation time
Process creationtime= rt1.exec(filename + "dir/ta");
//access time
Process accesstime= rt1.exec(filename+ "dir/ta");
//modified time
Process modifiedtime= rt1.exec(filename+ "dir/ta");
System.out.println("Creation time: " + accesstime);
System.out.println("Creation time: " + creationtime);
System.out.println("Creation time: " + modifiedtime);
}
}
You need spaces in those command after dir and you need to read the Process streams. See
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
ASKER
Hi! thanks for the response. Now it compiles alright but when I specify a filename or directory name then its gives me an IOException: I have done a bit of research and a lot of articles seem to suggest that the file/directory I have specify is not found. C:\Dev-C++ does exist. Any suggestions?
C:\>java Times
Enter file or directory name:
C:\Dev-C++
exception happened :
java.io.IOException: CreateProcess: "dir \tc" "dir /ta" "dir /twC:\Dev-C++" error=2
at java.lang.ProcessImpl.crea te(Native Method)
at java.lang.ProcessImpl.<ini t>(Unknown Source)
at java.lang.ProcessImpl.star t(Unknown Source)
at java.lang.ProcessBuilder.s tart(Unkno wn Source)
at java.lang.Runtime.exec(Unk nown Source)
at java.lang.Runtime.exec(Unk nown Source)
at Times.main(Times.java:23)
C:\>java Times
Enter file or directory name:
C:\Dev-C++
exception happened :
java.io.IOException: CreateProcess: "dir \tc" "dir /ta" "dir /twC:\Dev-C++" error=2
at java.lang.ProcessImpl.crea
at java.lang.ProcessImpl.<ini
at java.lang.ProcessImpl.star
at java.lang.ProcessBuilder.s
at java.lang.Runtime.exec(Unk
at java.lang.Runtime.exec(Unk
at Times.main(Times.java:23)
import java.io.*;
public class Times {
public static void main(String args[]) {
String s = null;
try {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter file or directory name: ");
File filename = new File(in.readLine());
// run windows command in conjuction with entered file/directory name
// creation time "dir /tc"
// access time "dir /ta"
// modifed time "dir /tw"
String [] times={"dir /tc", "dir /ta" , "dir /tw" + filename};
Process p= Runtime.getRuntime().exec(times);
//Process p= Runtime.getRuntime().exec("dir /tc" + "dir /ta" + "dir /tw" + filename);
BufferedReader stdInput = new BufferedReader(new
InputStreamReader(p.getInputStream()));
BufferedReader stdError = new BufferedReader(new
InputStreamReader(p.getErrorStream()));
// read the output from the command
System.out.println("The output:\n");
while ((s = stdInput.readLine()) != null) {
System.out.println(s);
}
// read any errors from the attempted command
System.out.println("Here is the standard error of the command (if any):\n");
while ((s = stdError.readLine()) != null) {
System.out.println(s);
}
System.exit(0);
}
catch (IOException e) {
System.out.println("exception happened : ");
e.printStackTrace();
System.exit(-1);
}
}
}
ASKER
I have come across this:
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html?page=3
But how can this solve the problem of a user enterting a filename..... is there another way of coding it? to allow a user to enter file/directory name and in a sense it should combine the command and file/directory name and output its times
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html?page=3
But how can this solve the problem of a user enterting a filename..... is there another way of coding it? to allow a user to enter file/directory name and in a sense it should combine the command and file/directory name and output its times
>>"dir /twC:\Dev-C++"
Is there meant to be no space between /tw and C: ?
Is there meant to be no space between /tw and C: ?
ASKER
Even with spaces doesnt work. Any other altenative?
C:\>java Times C:\Dev-C++
exception happened :
java.io.IOException: CreateProcess: dir\tc dir/ta dir/tw C:\Dev-C++ error=2
C:\>java Times C:\Dev-C++
exception happened :
java.io.IOException: CreateProcess: dir\tc dir/ta dir/tw C:\Dev-C++ error=2
String [] times= new String [4];
times [0]= "dir/tc";
times [1]= "dir/ta";
times [2]= "dir/tw";
times [3]= args[0];
Process p= Runtime.getRuntime().exec(times);
Please post the result of the following command:
dir C:\Dev-C++
dir C:\Dev-C++
ASKER
The result of command dir C:\Dev-C++ :
C:\>dir C:\Dev-C++
Volume in drive C has no label.
Volume Serial Number is 20FB-E730
Directory of C:\Dev-C++
21/01/2008 10:38 <DIR> .
21/01/2008 10:38 <DIR> ..
21/01/2008 10:38 <DIR> Bin
18/01/2008 02:24 2,026 devcpp.ini
1 File(s) 2,026 bytes
3 Dir(s) 12,809,760,768 bytes free
Creation time ( "dir/tc " )
C:\>dir/tc C:\Dev-C++
Volume in drive C has no label.
Volume Serial Number is 20FB-E730
Directory of C:\Dev-C++
22/12/2007 21:29 <DIR> .
22/12/2007 21:29 <DIR> ..
22/12/2007 21:29 <DIR> Bin
22/12/2007 21:30 2,026 devcpp.ini
1 File(s) 2,026 bytes
3 Dir(s) 12,809,760,768 bytes free
Last access time ( "dir/ta " )
C:\>dir/ta C:\Dev-C++
Volume in drive C has no label.
Volume Serial Number is 20FB-E730
Directory of C:\Dev-C++
09/03/2008 22:01 <DIR> .
09/03/2008 22:01 <DIR> ..
09/03/2008 01:25 <DIR> Bin
18/01/2008 02:24 2,026 devcpp.ini
1 File(s) 2,026 bytes
3 Dir(s) 12,809,760,768 bytes free
Modified time ( "dir/tw " )
C:\>dir/tw C:\Dev-C++
Volume in drive C has no label.
Volume Serial Number is 20FB-E730
Directory of C:\Dev-C++
21/01/2008 10:38 <DIR> .
21/01/2008 10:38 <DIR> ..
21/01/2008 10:38 <DIR> Bin
18/01/2008 02:24 2,026 devcpp.ini
1 File(s) 2,026 bytes
3 Dir(s) 12,809,760,768 bytes free
C:\>dir C:\Dev-C++
Volume in drive C has no label.
Volume Serial Number is 20FB-E730
Directory of C:\Dev-C++
21/01/2008 10:38 <DIR> .
21/01/2008 10:38 <DIR> ..
21/01/2008 10:38 <DIR> Bin
18/01/2008 02:24 2,026 devcpp.ini
1 File(s) 2,026 bytes
3 Dir(s) 12,809,760,768 bytes free
Creation time ( "dir/tc " )
C:\>dir/tc C:\Dev-C++
Volume in drive C has no label.
Volume Serial Number is 20FB-E730
Directory of C:\Dev-C++
22/12/2007 21:29 <DIR> .
22/12/2007 21:29 <DIR> ..
22/12/2007 21:29 <DIR> Bin
22/12/2007 21:30 2,026 devcpp.ini
1 File(s) 2,026 bytes
3 Dir(s) 12,809,760,768 bytes free
Last access time ( "dir/ta " )
C:\>dir/ta C:\Dev-C++
Volume in drive C has no label.
Volume Serial Number is 20FB-E730
Directory of C:\Dev-C++
09/03/2008 22:01 <DIR> .
09/03/2008 22:01 <DIR> ..
09/03/2008 01:25 <DIR> Bin
18/01/2008 02:24 2,026 devcpp.ini
1 File(s) 2,026 bytes
3 Dir(s) 12,809,760,768 bytes free
Modified time ( "dir/tw " )
C:\>dir/tw C:\Dev-C++
Volume in drive C has no label.
Volume Serial Number is 20FB-E730
Directory of C:\Dev-C++
21/01/2008 10:38 <DIR> .
21/01/2008 10:38 <DIR> ..
21/01/2008 10:38 <DIR> Bin
18/01/2008 02:24 2,026 devcpp.ini
1 File(s) 2,026 bytes
3 Dir(s) 12,809,760,768 bytes free
>>String [] times={"dir /tc", "dir /ta" , "dir /tw" + filename};
should be
String [] times={"dir /tc", "dir /ta" , "dir /tw " + filename};
should be
String [] times={"dir /tc", "dir /ta" , "dir /tw " + filename};
ASKER
Both of the statements are the same....... no differences from the first one
They're not - look at the spacing with a large font
ASKER
It doesnt work I still get the IOException error 2 when I run it & enter filename/directory name. Does it work on yours?. Why cant I just create my own class without using Run exe() or JNI? is this possible if so how can I go about it because I cant see how this can be done.
I can't test it at the moment - i'm not running Windows. Print out the command that you're executing. Can you execute the exact same command at the command line?
Broadly, there are two things wrong:
a. The command looks wrong. Normally dir is only run once per command - you have it several times
b. The Process' streams need to be treated on separate threads. See
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
a. The command looks wrong. Normally dir is only run once per command - you have it several times
b. The Process' streams need to be treated on separate threads. See
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
ASKER
I agree with you that the command isnt in the right format as it wouldnt even run expectedly under Dos. But how can you execute multiple commands? that wold mean you will need different processes and input and output streams as well.... otherwise it will through a compile error as already defined. Surely there must be a way apart from creating different processes and I/O streams to execute these command. I was going to hold these commands in an array but in principle the process still executes more than command so it doesnt makes a difference. Unless there is another way to execute multiple commands without using different processes & I/O Stream.
Apart from using JNI or run exe()...... is there another way?? By the look of it I am chasing the air for something that could have been much simpler.
Apart from using JNI or run exe()...... is there another way?? By the look of it I am chasing the air for something that could have been much simpler.
You could do
dir C:\ && dir C:\Dev-C++
dir C:\ && dir C:\Dev-C++
ASKER
Hi! Sorry for late reply. The problem is still there when you combine commands together or when you use only one command. When you use single command in Dos works fine but when you coded it in your code it doesn't work. I have done a bit of search and I have come across a filetimes class which is part of JNI. By the use of this class will allow you to set/get those times. The problem is I have read some tutorials on JNI online but they don't make sense at all.... The class and JNI is already written the only thing I have to do is to make use of it i.e. create methods which gets the times. The problem is how do I set the path in order for my code to integrate with the filetimes class + JNI ?? The JNI is still new and I have no ideal how to make use of it.
The file times class & JNI can be found here: http://mindprod.com/zips/filetimes18.zip
The code I have written is attached and the error I am getting is : "package com.Desktop.Forensic_proje ct.com.min dprod does not exist". I have save the file mactime.java in C:\Documents and Settings\com\Desktop\Foren sic_projec t\com\mind prod\filet imes. This is where the filetimes class & JNI exist.... I guess its the path problem or?
Many thanks!!
The file times class & JNI can be found here: http://mindprod.com/zips/filetimes18.zip
The code I have written is attached and the error I am getting is : "package com.Desktop.Forensic_proje
Many thanks!!
import com.Desktop.Forensic_project.com.mindprod.filetimes;
import java.io.*;
import java.util.*;
public class mactime{
public static void main(String[] args) throws IOException{
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Please Enter a File/Directory name: ");
File filename = new File(in.readLine());
if (filename.isDirectory()){
if (filename.exists()){
long current = System.currentTimeMillis();
long lastAccessed = filename.getFileLastAccessed();
System.out.println("File name : " + filename.getName());
System.out.println("File Last access date and time : " + new Date(lastAccessed));
long created = filename.getFileCreated();
System.out.println("File name : " + filename.getName());
System.out.println("File creation date and time : " + new Date(created));
long lastModified = FileTimes.getFileLastModified();
System.out.println("File name : " + filename.getName());
System.out.println("File last modification date and time : " + new Date(lastModified));
}
else{
System.out.println("Directory not found!");
System.exit(0);
}
}
else{
if (filename.exists()){
long current = System.currentTimeMillis();
long lastAccessed = filename.getFileLastAccessed();
System.out.println("File name : " + filename.getName());
System.out.println("File Last access date and time : " + new Date(lastAccessed));
long created = filename.getFileCreated();
System.out.println("File name : " + filename.getName());
System.out.println("File creation date and time : " + new Date(created));
long lastModified = FileTimes.getFileLastModified();
System.out.println("File name : " + filename.getName());
System.out.println("File last modification date and time : " + new Date(lastModified));
}
else{
System.out.println("File not found!");
System.exit(0);
}
}
}
}
Add that zip file to your class path and do your imports as below:
import com.mindprod.filetimes.*;
import com.mindprod.common11.*;
ASKER
This is what I have done to set the class path: My computer > properties>advanced>Enviro nment Variables> class path in a User variables & System variables.
User variables- class path as : C:\Program Files\Java\jdk1.5.0_09\bin ;C:\Docume nts and Settings\com\My Documents\filetimes18.zip
System variable- class path as : .;C:\Program Files\Java\jdk1.5.0_09\bin ;C:\Progra m Files\Java\jre1.5.0_09\lib \ext\QTJav a.zip;C:\D ocuments and Settings\com\My Documents\filetimes18.zip
But I still get the same error message:
mactime.java:1: package com.mindprod.filetimes does not exist
import com.mindprod.filetimes.*;
^
mactime.java:2: package com.mindprod.common11 does not exist
import com.mindprod.common11.*;
^
What have I done wrong?
User variables- class path as : C:\Program Files\Java\jdk1.5.0_09\bin
System variable- class path as : .;C:\Program Files\Java\jdk1.5.0_09\bin
But I still get the same error message:
mactime.java:1: package com.mindprod.filetimes does not exist
import com.mindprod.filetimes.*;
^
mactime.java:2: package com.mindprod.common11 does not exist
import com.mindprod.common11.*;
^
What have I done wrong?
Can you do
echo %CLASSPATH%
at the command line?
echo %CLASSPATH%
at the command line?
ASKER
C:\Documents and Settings\com>echo %CLASSPATH%
C:\Program Files\Java\jdk1.5.0_09\bin ;C:\Docume nts and Settings\com\My Documents
\filetimes18.zip
C:\Program Files\Java\jdk1.5.0_09\bin
\filetimes18.zip
OK and now the following two please:
dir "C:\Documents and Settings\com\My Documents\filetimes18.zip"
jar tf "C:\Documents and Settings\com\My Documents\filetimes18.zip"
dir "C:\Documents and Settings\com\My Documents\filetimes18.zip"
jar tf "C:\Documents and Settings\com\My Documents\filetimes18.zip"
ASKER
C:\Documents and Settings\com>dir "C:\Documents and Settings\com\My Documents\filetimes18.zip"
Volume in drive C has no label.
Volume Serial Number is 20FB-E730
Directory of C:\Documents and Settings\com\My Documents
11/03/2008 19:47 641,462 filetimes18.zip
1 File(s) 641,462 bytes
0 Dir(s) 12,893,298,688 bytes free
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C:\Documents and Settings\com>jar tf "C:\Documents and Settings\com\My Documents\filetimes18.zip"
com/mindprod/filetimes/DES CRIPT.ION
com/mindprod/filetimes/Fil eTimes.cla ss
com/mindprod/filetimes/Fil eTimes.jav a
com/mindprod/filetimes/Onl yDirsFilte r.class
com/mindprod/filetimes/Tou chDirs.cla ss
com/mindprod/filetimes/Tou chDirs.jav a
com/mindprod/filetimes/bui ld.xml
com/mindprod/filetimes/des c.btm
com/mindprod/filetimes/fil etimes.jar
com/mindprod/filetimes/fil etimes.loo k
com/mindprod/filetimes/fil etimes.use
com/mindprod/filetimes/fil etimes.xml
com/mindprod/filetimes/fil etimesicon 128.png
com/mindprod/filetimes/fil etimesicon 16.png
com/mindprod/filetimes/fil etimesicon 32.png
com/mindprod/filetimes/fil etimesicon 48.png
com/mindprod/filetimes/fil etimesicon 64.png
com/mindprod/filetimes/fil etimespadd esc.html
com/mindprod/filetimes/fil etimesscre enshot.png
com/mindprod/filetimes/jav adoc/allcl asses-fram e.html
com/mindprod/filetimes/jav adoc/allcl asses-nofr ame.html
com/mindprod/filetimes/jav adoc/com/m indprod/fi letimes/Fi leTimes.ht ml
com/mindprod/filetimes/jav adoc/com/m indprod/fi letimes/To uchDirs.ht ml
com/mindprod/filetimes/jav adoc/com/m indprod/fi letimes/cl ass-use/Fi leTimes.ht ml
com/mindprod/filetimes/jav adoc/com/m indprod/fi letimes/cl ass-use/To uchDirs.ht ml
com/mindprod/filetimes/jav adoc/com/m indprod/fi letimes/pa ckage-fram e.html
com/mindprod/filetimes/jav adoc/com/m indprod/fi letimes/pa ckage-summ ary.html
com/mindprod/filetimes/jav adoc/com/m indprod/fi letimes/pa ckage-tree .html
com/mindprod/filetimes/jav adoc/com/m indprod/fi letimes/pa ckage-use. html
com/mindprod/filetimes/jav adoc/const ant-values .html
com/mindprod/filetimes/jav adoc/depre cated-list .html
com/mindprod/filetimes/jav adoc/help- doc.html
com/mindprod/filetimes/jav adoc/index -all.html
com/mindprod/filetimes/jav adoc/index .html
com/mindprod/filetimes/jav adoc/overv iew-tree.h tml
com/mindprod/filetimes/jav adoc/resou rces/inher it.gif
com/mindprod/filetimes/jav adoc/style sheet.css
com/mindprod/filetimes/nat ivefiletim es/DESCRIP T.ION
com/mindprod/filetimes/nat ivefiletim es/Debug/B uildLog.ht m
com/mindprod/filetimes/nat ivefiletim es/Debug/n ativefilet imes.dll
com/mindprod/filetimes/nat ivefiletim es/Release /BuildLog. htm
com/mindprod/filetimes/nat ivefiletim es/Release /DESCRIPT. ION
com/mindprod/filetimes/nat ivefiletim es/Release /nativefil etimes.dll
com/mindprod/filetimes/nat ivefiletim es/filetim es.c
com/mindprod/filetimes/nat ivefiletim es/filetim es.h
com/mindprod/filetimes/pro pdll.bat
com/mindprod/filetimes/reb uild.xml
com/mindprod/filetimes/run .bat
com/mindprod/filetimes/tou chdirs.jar
com/mindprod/filetimes/use .txt
com/mindprod/filetimes/ver sion.txt
com/mindprod/common11/BigD ate.class
com/mindprod/common11/BigD ate.java
com/mindprod/common11/Buil d.class
com/mindprod/common11/Buil d.java
com/mindprod/common11/CMPA boutBox$1. class
com/mindprod/common11/CMPA boutBox$2. class
com/mindprod/common11/CMPA boutBox$3. class
com/mindprod/common11/CMPA boutBox$4. class
com/mindprod/common11/CMPA boutBox.cl ass
com/mindprod/common11/CMPA boutBox.ja va
com/mindprod/common11/Comm on11.class
com/mindprod/common11/Comm on11.java
com/mindprod/common11/DESC RIPT.ION
com/mindprod/common11/Hybr id$1.class
com/mindprod/common11/Hybr id.class
com/mindprod/common11/Hybr id.java
com/mindprod/common11/Imag eInfo.clas s
com/mindprod/common11/Imag eInfo.java
com/mindprod/common11/Imag eViewer.cl ass
com/mindprod/common11/Imag eViewer.ja va
com/mindprod/common11/Limi ter.class
com/mindprod/common11/Limi ter.java
com/mindprod/common11/Misc .class
com/mindprod/common11/Misc .java
com/mindprod/common11/Resi zingImageV iewer.clas s
com/mindprod/common11/Resi zingImageV iewer.java
com/mindprod/common11/Shuf fle.class
com/mindprod/common11/Shuf fle.java
com/mindprod/common11/Stop pableThrea d.class
com/mindprod/common11/Stop pableThrea d.java
com/mindprod/common11/Stri ngTools.cl ass
com/mindprod/common11/Stri ngTools.ja va
com/mindprod/common11/Test Date.class
com/mindprod/common11/Test Date.java
com/mindprod/common11/Vers ionCheck.c lass
com/mindprod/common11/Vers ionCheck.j ava
com/mindprod/common11/buil d.xml
com/mindprod/common11/comm on11.jar
com/mindprod/common11/comm on11.look
com/mindprod/common11/comm on11.use
com/mindprod/common11/comm on11.xml
com/mindprod/common11/comm on11icon12 8.png
com/mindprod/common11/comm on11icon16 .png
com/mindprod/common11/comm on11icon32 .png
com/mindprod/common11/comm on11icon48 .png
com/mindprod/common11/comm on11icon64 .png
com/mindprod/common11/comm on11paddes c.html
com/mindprod/common11/comm on11screen shot.png
com/mindprod/common11/desc .btm
com/mindprod/common11/java doc/allcla sses-frame .html
com/mindprod/common11/java doc/allcla sses-nofra me.html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/BigD ate.html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/Buil d.html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/CMPA boutBox.ht ml
com/mindprod/common11/java doc/com/mi ndprod/com mon11/Comm on11.html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/Hybr id.html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/Imag eInfo.html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/Imag eViewer.ht ml
com/mindprod/common11/java doc/com/mi ndprod/com mon11/Limi ter.html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/Misc .html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/Resi zingImageV iewer.html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/Shuf fle.html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/Stop pableThrea d.html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/Stri ngTools.ht ml
com/mindprod/common11/java doc/com/mi ndprod/com mon11/Test Date.html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/Vers ionCheck.h tml
com/mindprod/common11/java doc/com/mi ndprod/com mon11/clas s-use/BigD ate.html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/clas s-use/Buil d.html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/clas s-use/CMPA boutBox.ht ml
com/mindprod/common11/java doc/com/mi ndprod/com mon11/clas s-use/Comm on11.html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/clas s-use/Hybr id.html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/clas s-use/Imag eInfo.html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/clas s-use/Imag eViewer.ht ml
com/mindprod/common11/java doc/com/mi ndprod/com mon11/clas s-use/Limi ter.html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/clas s-use/Misc .html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/clas s-use/Resi zingImageV iewer.html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/clas s-use/Shuf fle.html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/clas s-use/Stop pableThrea d.html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/clas s-use/Stri ngTools.ht ml
com/mindprod/common11/java doc/com/mi ndprod/com mon11/clas s-use/Test Date.html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/clas s-use/Vers ionCheck.h tml
com/mindprod/common11/java doc/com/mi ndprod/com mon11/pack age-frame. html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/pack age-summar y.html
com/mindprod/common11/java doc/com/mi ndprod/com mon11/pack age-tree.h tml
com/mindprod/common11/java doc/com/mi ndprod/com mon11/pack age-use.ht ml
com/mindprod/common11/java doc/consta nt-values. html
com/mindprod/common11/java doc/deprec ated-list. html
com/mindprod/common11/java doc/help-d oc.html
com/mindprod/common11/java doc/index- all.html
com/mindprod/common11/java doc/index. html
com/mindprod/common11/java doc/overvi ew-tree.ht ml
com/mindprod/common11/java doc/resour ces/inheri t.gif
com/mindprod/common11/java doc/serial ized-form. html
com/mindprod/common11/java doc/styles heet.css
com/mindprod/common11/pack age-info.j ava
com/mindprod/common11/rebu ild.xml
com/mindprod/common11/use. txt
com/mindprod/common11/vers ion.txt
Volume in drive C has no label.
Volume Serial Number is 20FB-E730
Directory of C:\Documents and Settings\com\My Documents
11/03/2008 19:47 641,462 filetimes18.zip
1 File(s) 641,462 bytes
0 Dir(s) 12,893,298,688 bytes free
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C:\Documents and Settings\com>jar tf "C:\Documents and Settings\com\My Documents\filetimes18.zip"
com/mindprod/filetimes/DES
com/mindprod/filetimes/Fil
com/mindprod/filetimes/Fil
com/mindprod/filetimes/Onl
com/mindprod/filetimes/Tou
com/mindprod/filetimes/Tou
com/mindprod/filetimes/bui
com/mindprod/filetimes/des
com/mindprod/filetimes/fil
com/mindprod/filetimes/fil
com/mindprod/filetimes/fil
com/mindprod/filetimes/fil
com/mindprod/filetimes/fil
com/mindprod/filetimes/fil
com/mindprod/filetimes/fil
com/mindprod/filetimes/fil
com/mindprod/filetimes/fil
com/mindprod/filetimes/fil
com/mindprod/filetimes/fil
com/mindprod/filetimes/jav
com/mindprod/filetimes/jav
com/mindprod/filetimes/jav
com/mindprod/filetimes/jav
com/mindprod/filetimes/jav
com/mindprod/filetimes/jav
com/mindprod/filetimes/jav
com/mindprod/filetimes/jav
com/mindprod/filetimes/jav
com/mindprod/filetimes/jav
com/mindprod/filetimes/jav
com/mindprod/filetimes/jav
com/mindprod/filetimes/jav
com/mindprod/filetimes/jav
com/mindprod/filetimes/jav
com/mindprod/filetimes/jav
com/mindprod/filetimes/jav
com/mindprod/filetimes/jav
com/mindprod/filetimes/nat
com/mindprod/filetimes/nat
com/mindprod/filetimes/nat
com/mindprod/filetimes/nat
com/mindprod/filetimes/nat
com/mindprod/filetimes/nat
com/mindprod/filetimes/nat
com/mindprod/filetimes/nat
com/mindprod/filetimes/pro
com/mindprod/filetimes/reb
com/mindprod/filetimes/run
com/mindprod/filetimes/tou
com/mindprod/filetimes/use
com/mindprod/filetimes/ver
com/mindprod/common11/BigD
com/mindprod/common11/BigD
com/mindprod/common11/Buil
com/mindprod/common11/Buil
com/mindprod/common11/CMPA
com/mindprod/common11/CMPA
com/mindprod/common11/CMPA
com/mindprod/common11/CMPA
com/mindprod/common11/CMPA
com/mindprod/common11/CMPA
com/mindprod/common11/Comm
com/mindprod/common11/Comm
com/mindprod/common11/DESC
com/mindprod/common11/Hybr
com/mindprod/common11/Hybr
com/mindprod/common11/Hybr
com/mindprod/common11/Imag
com/mindprod/common11/Imag
com/mindprod/common11/Imag
com/mindprod/common11/Imag
com/mindprod/common11/Limi
com/mindprod/common11/Limi
com/mindprod/common11/Misc
com/mindprod/common11/Misc
com/mindprod/common11/Resi
com/mindprod/common11/Resi
com/mindprod/common11/Shuf
com/mindprod/common11/Shuf
com/mindprod/common11/Stop
com/mindprod/common11/Stop
com/mindprod/common11/Stri
com/mindprod/common11/Stri
com/mindprod/common11/Test
com/mindprod/common11/Test
com/mindprod/common11/Vers
com/mindprod/common11/Vers
com/mindprod/common11/buil
com/mindprod/common11/comm
com/mindprod/common11/comm
com/mindprod/common11/comm
com/mindprod/common11/comm
com/mindprod/common11/comm
com/mindprod/common11/comm
com/mindprod/common11/comm
com/mindprod/common11/comm
com/mindprod/common11/comm
com/mindprod/common11/comm
com/mindprod/common11/comm
com/mindprod/common11/desc
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/java
com/mindprod/common11/pack
com/mindprod/common11/rebu
com/mindprod/common11/use.
com/mindprod/common11/vers
OK. What imports have you got in your source?
ASKER
These are the imports:
import com.mindprod.filetimes.*;
import com.mindprod.common11.*;
The imports seems to work but some of the errors are still there:
mactime.java:16: cannot find symbol
symbol : method getFileLastAccessed()
location: class java.io.File
long lastAccessed = filename.getFileLastAccess ed();
^
mactime.java:21: cannot find symbol
symbol : method getFileCreated()
location: class java.io.File
long created = filename.getFileCreated();
^
mactime.java:26: getFileLastModified(java.l ang.String ) in com.mindprod.filetimes
.FileTimes cannot be applied to ()
long lastModified = FileTimes.getFileLastModif ied();
^
mactime.java:38: cannot find symbol
symbol : method getFileLastAccessed()
location: class java.io.File
long lastAccessed = filename.getFileLastAccess ed();
^
mactime.java:43: cannot find symbol
symbol : method getFileCreated()
location: class java.io.File
long created = filename.getFileCreated();
^
mactime.java:48: getFileLastModified(java.l ang.String ) in com.mindprod.filetimes
.FileTimes cannot be applied to ()
long lastModified = FileTimes.getFileLastModif ied();
^
6 errors
why these errors occur ? all the function used do exist in the file times class
import com.mindprod.filetimes.*;
import com.mindprod.common11.*;
The imports seems to work but some of the errors are still there:
mactime.java:16: cannot find symbol
symbol : method getFileLastAccessed()
location: class java.io.File
long lastAccessed = filename.getFileLastAccess
^
mactime.java:21: cannot find symbol
symbol : method getFileCreated()
location: class java.io.File
long created = filename.getFileCreated();
^
mactime.java:26: getFileLastModified(java.l
.FileTimes cannot be applied to ()
long lastModified = FileTimes.getFileLastModif
^
mactime.java:38: cannot find symbol
symbol : method getFileLastAccessed()
location: class java.io.File
long lastAccessed = filename.getFileLastAccess
^
mactime.java:43: cannot find symbol
symbol : method getFileCreated()
location: class java.io.File
long created = filename.getFileCreated();
^
mactime.java:48: getFileLastModified(java.l
.FileTimes cannot be applied to ()
long lastModified = FileTimes.getFileLastModif
^
6 errors
why these errors occur ? all the function used do exist in the file times class
Looks as if there could be something wrong with the download
Those methods you're calling with void parameters mostly take String as a param
ASKER
Yes! in the filetimes class they do take String as parameter.....but with String it still produces the same error. I have read what the error[cannot find symbol] means in here: http://mindprod.com/jgloss/compileerrormessages.html#CANNOTFINDSYMBOL
At the same time it seems that the methods for times when called is referred in the location java.io.File, whereas it should have been in com.mindprod.filetimes ??!!
Error:
C:\>javac mactime2.java
mactime2.java:17: cannot find symbol
symbol : method getFileLastAccessed()
String lastAccessed = f.getFileLastAccessed();
^
mactime2.java:23: cannot find symbol
symbol : class f
location: class mactime2
String created = f.super.getFileCreated();
^
mactime2.java:28: not an enclosing class: com.mindprod.filetimes.Fil eTimes
String lastModified = FileTimes.super.getFileLas tModified( );
^
mactime2.java:40: cannot find symbol
symbol : class f
location: class mactime2
String lastAccessed = f.super.getFileLastAccesse d();
^
mactime2.java:45: cannot find symbol
symbol : method getFileCreated()
location: class java.io.File
String created = f.getFileCreated();
^
mactime2.java:50: not an enclosing class: com.mindprod.filetimes.Fil eTimes
String lastModified = FileTimes.super.FileLastMo dified();
^
Note: mactime2.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
6 errors
At the same time it seems that the methods for times when called is referred in the location java.io.File, whereas it should have been in com.mindprod.filetimes ??!!
Error:
C:\>javac mactime2.java
mactime2.java:17: cannot find symbol
symbol : method getFileLastAccessed()
String lastAccessed = f.getFileLastAccessed();
^
mactime2.java:23: cannot find symbol
symbol : class f
location: class mactime2
String created = f.super.getFileCreated();
^
mactime2.java:28: not an enclosing class: com.mindprod.filetimes.Fil
String lastModified = FileTimes.super.getFileLas
^
mactime2.java:40: cannot find symbol
symbol : class f
location: class mactime2
String lastAccessed = f.super.getFileLastAccesse
^
mactime2.java:45: cannot find symbol
symbol : method getFileCreated()
location: class java.io.File
String created = f.getFileCreated();
^
mactime2.java:50: not an enclosing class: com.mindprod.filetimes.Fil
String lastModified = FileTimes.super.FileLastMo
^
Note: mactime2.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
6 errors
import com.mindprod.filetimes.*;
import com.mindprod.common11.*;
import java.io.*;
import java.util.*;
public class mactime2{
public static void main(String[] args) throws IOException{
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Please Enter a File/Directory name: ");
File f = new File(in.readLine());
if (f.isDirectory()){
if (f.exists()){
long current = System.currentTimeMillis();
String lastAccessed = f.getFileLastAccessed();
System.out.println("File name : " + f.getName());
System.out.println("File Last access date and time : " + new Date(lastAccessed));
String created = f.super.getFileCreated();
System.out.println("File name : " + f.getName());
System.out.println("File creation date and time : " + new Date(created));
String lastModified = FileTimes.super.getFileLastModified();
System.out.println("File name : " + f.getName());
System.out.println("File last modification date and time : " + new Date(lastModified));
}
else{
System.out.println("Directory not found!");
System.exit(0);
}
}
else{
if (f.exists()){
long current = System.currentTimeMillis();
String lastAccessed = f.super.getFileLastAccessed();
System.out.println("File name : " + f.getName());
System.out.println("File Last access date and time : " + new Date(lastAccessed));
String created = f.getFileCreated();
System.out.println("File name : " + f.getName());
System.out.println("File creation date and time : " + new Date(created));
String lastModified = FileTimes.super.FileLastModified();
System.out.println("File name : " + f.getName());
System.out.println("File last modification date and time : " + new Date(lastModified));
}
else{
System.out.println("File not found!");
System.exit(0);
}
}
}
}
ASKER
Sorry Correction there is no need for the use 'super' keyword..... is there?
Note: Location
C:\>javac mactime2.java
mactime2.java:17: cannot find symbol
symbol : method getFileLastAccessed()
location: class java.io.File
String lastAccessed = f.getFileLastAccessed();
^
mactime2.java:23: cannot find symbol
symbol : method getFileCreated()
location: class java.io.File
String created = f.getFileCreated();
^
mactime2.java:28: getFileLastModified(java.l ang.String ) in com.mindprod.filetimes.Fil eTimes cannot be applied to ()String lastModified = FileTimes.getFileLastModif ied();
^
mactime2.java:40: cannot find symbol
symbol : method getFileLastAccessed()
location: class java.io.File
String lastAccessed = f.getFileLastAccessed();
^
mactime2.java:45: cannot find symbol
symbol : method getFileCreated()
location: class java.io.File
String created = f.getFileCreated();
^
mactime2.java:50: cannot find symbol
symbol : method FileLastModified()
location: class java.io.File
String lastModified = f.FileLastModified();
^
Note: mactime2.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
6 errors
Note: Location
C:\>javac mactime2.java
mactime2.java:17: cannot find symbol
symbol : method getFileLastAccessed()
location: class java.io.File
String lastAccessed = f.getFileLastAccessed();
^
mactime2.java:23: cannot find symbol
symbol : method getFileCreated()
location: class java.io.File
String created = f.getFileCreated();
^
mactime2.java:28: getFileLastModified(java.l
^
mactime2.java:40: cannot find symbol
symbol : method getFileLastAccessed()
location: class java.io.File
String lastAccessed = f.getFileLastAccessed();
^
mactime2.java:45: cannot find symbol
symbol : method getFileCreated()
location: class java.io.File
String created = f.getFileCreated();
^
mactime2.java:50: cannot find symbol
symbol : method FileLastModified()
location: class java.io.File
String lastModified = f.FileLastModified();
^
Note: mactime2.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
6 errors
>>String lastAccessed = f.getFileLastAccessed();
There is no such method in java.io.File, which is what you're calling it on...
There is no such method in java.io.File, which is what you're calling it on...
Your question was titled "Date and Time stamp - in C programming language". You already got solutions for that half a year ago. So what the heck is going on here?
This should get you started with the library
mactime2.java.txt
mactime2.java.txt
ASKER
jkr >>"You already got solutions for that half a year ago..." No! there was no solution provided as you can see the problem continues. The suggestion were provided and I did took at it further; the msdn2 url you have provide for C programming, I couldn't understand it and that resulted in Java, which Its a bit favourable than C.
I got runtime error: Does this mean I havent set the path properly ? if so what do I need to do with the jni files and classes...
Exception in thread "main" java.lang.UnsatisfiedLinkE rror: no nativefiletimes in java.library.path
at java.lang.ClassLoader.load Library(Un known Source)
at java.lang.Runtime.loadLibr ary0(Unkno wn Source)
at java.lang.System.loadLibra ry(Unknown Source)
at com.mindprod.filetimes.Fil eTimes.<cl init>(File Times.java :326)
at mactime3.main(mactime3.jav a:28)
I got runtime error: Does this mean I havent set the path properly ? if so what do I need to do with the jni files and classes...
Exception in thread "main" java.lang.UnsatisfiedLinkE
at java.lang.ClassLoader.load
at java.lang.Runtime.loadLibr
at java.lang.System.loadLibra
at com.mindprod.filetimes.Fil
at mactime3.main(mactime3.jav
ASKER
Hi! Just an update. I have emailed the person developed the file times class and his response is:
"You need various aux files from com.mindprod.common11 and com.mindprod.filetimes. Put your class in a package. Bundle it with the common11 and filetimes classes in a jar, much like the one that came with filetimes. You also have to put the filetimes.dll on the path somewhere. "
>> Bundle it with the common11 and filetimes classes in a jar, much like the one that came with filetimes. what does this mean... is this referring to the imports?
>> You also have to put the filetimes.dll on the path somewhere. ?? how is this set?
Sorry for trouble guys! I am still learning!! and you cant learn without asking!!
"You need various aux files from com.mindprod.common11 and com.mindprod.filetimes. Put your class in a package. Bundle it with the common11 and filetimes classes in a jar, much like the one that came with filetimes. You also have to put the filetimes.dll on the path somewhere. "
>> Bundle it with the common11 and filetimes classes in a jar, much like the one that came with filetimes. what does this mean... is this referring to the imports?
>> You also have to put the filetimes.dll on the path somewhere. ?? how is this set?
Sorry for trouble guys! I am still learning!! and you cant learn without asking!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Object. Again... Once more... Err, well, the last time, I promise. Maybe.
The solutions sugested only won't work if you let a [*meep*] have its way ("OK, let's try this C code with a Javac ompiler") . Then, I am inclined to say "let it be", though.
Is it really surprising that I'd like to object again for the same aforementioned reasons? They haven't really changed so far ;o)
No, let's give ignorance some room. I will take back my objections and promise to never try to help the asker again, even if needed, is this a deal?
I never thought that it would be so hard to... err, well... whatever...
I never thought that it would be so hard to... err, well... whatever...
I am fine with that as well. Yet I would never stand in anyone's way when it comes to be the gut feeling of really waning to be ignorant.
Let me add that I am fine with a plain "Delete" at the moment also - just let this *beep* Q get off my radar. A lot of time has already been wasted to p*ss experts off regarding the original asker, not you mods (even though *your* time was being wasted to a considreable extent as well).
Well i spent a considerable amount of time on this, even including downloading a third party API and making it work and answered the question as far as i'm concerned.
ASKER
When providing a possible solution can you please varify that the solution work before posting for to the user. This will only result in delaying and response ....
ASKER
What a heck is going on here???? No points were awarded because there was no solution for any of them. You want me to award points for no solutions? wtf.
But I do have to say if there is a person to be awarded for any of the points if not all of it is CEHJ. He has been supporting the question all the way through it, though there was no solution with the errors found. I have tried to follow the advice but nothing worked, and I also kept update with the question. I even tried to tempt the so called experts with more point by opening another question as a pointer but that didnt work either.
The reason why the entire question were deleted is because the was no solution. Correct me if I am wrong- you award points based on the solution provided! right? NO SOLUTION, NO POINT AWARDED.
Having said that! and see people worked about the point, the only person deserved a credit solely on the support provided is CEHJ. This is the reason I will accept the CEHJ.
NOTE: NO ABSOLUTE SOLUTION PROVIDED
But I do have to say if there is a person to be awarded for any of the points if not all of it is CEHJ. He has been supporting the question all the way through it, though there was no solution with the errors found. I have tried to follow the advice but nothing worked, and I also kept update with the question. I even tried to tempt the so called experts with more point by opening another question as a pointer but that didnt work either.
The reason why the entire question were deleted is because the was no solution. Correct me if I am wrong- you award points based on the solution provided! right? NO SOLUTION, NO POINT AWARDED.
Having said that! and see people worked about the point, the only person deserved a credit solely on the support provided is CEHJ. This is the reason I will accept the CEHJ.
NOTE: NO ABSOLUTE SOLUTION PROVIDED
Thank you alibax, but i'm interested to know what you still need that you haven't got
>>NOTE: NO ABSOLUTE SOLUTION PROVIDED
I suggest you learn to understand what all others wrote. Your question was "Date and Time stamp - in C programming language". Plenty of answers were given. If you are unable to understand or use them, that's a different thing.
I suggest you learn to understand what all others wrote. Your question was "Date and Time stamp - in C programming language". Plenty of answers were given. If you are unable to understand or use them, that's a different thing.
Should be deleted altogether from what I can see, can't see anyone getting much value from reading thru it. Just another pile of waffle going into the PAQ db
Oh, and as far as non-admin issues are concerned: *PLONK*. Maybe the gus/gals in "Java" are more forgiving. You have my hearty FOAD for being simply plain ignorant. We do not need people like you on EE, IMHO. Whatever you credit card buys you, it is *NOT* *people* like me. Case closed. Unsubscribing...
yes if experts stopped entertaining these kinds of situations EE would be a better place.