Mathew Roy
December 29th, 2009, 07:50 AM
Hi all,
I am a LINUX newb!...
I am making a small program in c to encrypt files. The program accepts the <source file> and <destination file> as arguments (using getopt()).
So there is a chance that someone may give path of a folder as source file!. And when that happens my program should be able to recognise it and should open the folder and should process all files inside it.
I just dont know how to do that. Can any one plz help me...
One more thing, is there any way to find the size of a file through program (by not using seek()). In windows this is possible by reading ffblk structure. But how do I do it under LINUX?:confused:
Now my program is completely command line, and I would like to make it GUI (Graphical User Interface), plz help me do that too.
I have attached the whole code with this thread!..
Plz help me...
I am a LINUX newb!...
I am making a small program in c to encrypt files. The program accepts the <source file> and <destination file> as arguments (using getopt()).
So there is a chance that someone may give path of a folder as source file!. And when that happens my program should be able to recognise it and should open the folder and should process all files inside it.
I just dont know how to do that. Can any one plz help me...
One more thing, is there any way to find the size of a file through program (by not using seek()). In windows this is possible by reading ffblk structure. But how do I do it under LINUX?:confused:
Now my program is completely command line, and I would like to make it GUI (Graphical User Interface), plz help me do that too.
I have attached the whole code with this thread!..
Plz help me...