files

How to get the properties of the Details tab in a file.

You should all have noticed if you right click a file in the windows explorer, there is a tab named Details. Is there any trick to get these properties, and specifically the product name, whether this is a .NET file or not, over C#? Thank you. ...

extracting jar files

how do we extract jar files in ubuntu???? ...

Reading a text file

hi friends i am importing a text file database in my sql server database in asp.net c#. but i cannot fetch the column name from .txt file which contains a numeric data now what to do? please tell me if anyone knows very very thanx in advance ...

How do I copy the binary code of an executable into a new file without using a system copy command?

This is the code I have, but the file is a little smaller and doesn't execute: int WriteFileContentsToNewFile(string inFilename, string outFilename) { ifstream infile(inFilename.c_str(), ios::binary); ofstream outfile(outFilename.c_str(), ios::binary); string line; // Initial read infile >> line; outfile << line...

Access ini file from documents for reading

Hi everyone, I have put a config ini file "config.ini" for reading and writing to from my C# program, the thing is, if the user has UAC enabled then for some weird reasons the program doesn't read or write to the file but it managed to create the file but cannot read or write to it. How can I get this to work. this file is saved into ...

How will i play the video files using c#

i like to play video files like avi through my c# program. is it possible to play like that,anybody help me......... ...

Update database when file is added

Having a server(ish) I want a way to keep track of the files I have in some folders with a web-interface. I have done most of the programming already, by basically parsing through the folders each load ( not the most optimized way but it has had it advantages as well ). But now the reasons of keeping the files in a database has become ov...

How to get rid of special characters at the beginning, while using File.ReadAllLines in C#

Hi, I tried string[] file = File.ReadAllLines(file_name) to read a word file. In debug mode i found that the first few arguments of the string array file are having values like "��ࡱ�0\0\0\0>\0\0��\t\0\0\0\0\0". How can i get rid of this. In certain files the first 3 arguments of the file[] are filled with these while for few file...

ssl encrypt large file using php for backup

I'm g-zipping and backing-up my database dump (using mysqldump ) to amazon S3 . all works fine, but i also need to encrypt this big-compressed file for securing the very- sensitive data within the database. please help, i'm really lost here . Thanks in advance :) ...

VBScript to detect today's modified files in a folder (including subfolders inside it)

Hi All I need to get all the modified files inside a folder including the subfolders inside it, and copy them to another folder. How can it be done using VBScript or any other way to achieve this? Thanks in advance, Bibhu ...

How can I loop through files in a directory in Perl?

Possible Duplicate: How can I list all of the files in a directory with Perl? I want to loop through a few hundred files that are all contained in the same directory. How would I do this in Perl? ...

When you make a file read-only via Properties, can your program write directly to that file?

I'm wondering whether making files read-only so the user can't mess with them will disallow my program from writing information to them via an fstream. ...

Concatenating file with path to get full path in C

Using C, I'm trying to concatenate the filenames in a directory with their paths so that I can call stat() for each, but when I try to do using strcat inside the loop it concatenates the previous filename with the next. It's modifying argv[1] during the loop, but I haven't worked with C in a long time, so I'm very confused... #include <...

Shuffle lines in a file in .NET

Consider I have a file "new.txt" like, asdfg qwerty zcx poi Now i need to shuffle the lines of this text file. How can i do this in C#.? ...

How do you remove multiple files in C using wildcards

Is there any way in C to remove (using remove()) multiple files using a * (wildcards)? I have a set of files that all start with Index. For example: Index1.txt Index-39.txt etc. They all start with Index but I don't know what text follows. There are also other files in the same directory so deleting all files won't work. I know you can...

how to toggle between the running exe files using c#.net code on button click?

sir i want to know that how could i navigate/toggle between the different exe files using c#.net code on my .net application on the button click event..basically i want to do toggling between the current and previously opened running exe files..im able to run an exe file on my .net application but not able to provide an option for openin...

C#: How can I get the icon for a certain file?

If I have the path to a file, is there a way I can get the icon that windows would have displayed for that file in Windows Explorer? ...

Big Endian and Little Endian for Files in C++

I am trying to write some processor independent code to write some files in big endian. I have a sample of code below and I can't understand why it doesn't work. All it is supposed to do is let byte store each byte of data one by one in big endian order. In my actual program I would then write the individual byte out to a file, so I get ...

Boolean Difference between text files on Linux?

Are there any command line linux utilities that will give me the boolean difference between two text files? Meaning: File-A: Apple Pear Orange Banana File-B: Pear Orange Running % program File-A File-B -o output output: Apple Banana Edit: Awesome, thanks guys! ...

Error on encryption/decryption files

When I decrypt an encrypted file; it doesn't have the same size in bytes as the original file and the the hash of the file is different. I get the bytes of the file using File.ReadAllBytes and send to EncryptBytes with the password. Also the same with DecryptBytes. When I receive the bytes encrypted or decrypted i save them using File...