Write a binary file





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

9
Date Submitted Thu. Mar. 9th, 2006 10:41 PM
Revision 1
Beginner atlamp
Tags copy | File | Java | tmp
Comments 0 comments
Copy a file to a new location, optionally marking the file as a temporary file (to be deleted on application exit).

Note there are issues for temporary files - not all the parent directories that might be created are guaranteed to be deleted - only the immediate parent directory will be deleted on exit if created. Other higher-level directories will not be deleted, even if the file is marked as temporary.
3
Date Submitted Thu. Mar. 2nd, 2006 10:05 AM
Revision 1
Syntax Master dannyboy
Tags File | Folder | VBSCRIPT
Comments 1 comments
Check the attributes of a file or folde
3
Date Submitted Thu. Mar. 2nd, 2006 9:59 AM
Revision 1
Syntax Master dannyboy
Tags File | info | VBSCRIPT
Comments 0 comments
Retrieve information about a file
3
Date Submitted Thu. Mar. 2nd, 2006 5:23 AM
Revision 1
Syntax Master dannyboy
Tags File | Folder | VBSCRIPT
Comments 0 comments
this function returns the aggregated size
of all files in a directory and its subdirectories
-2
Date Submitted Thu. Mar. 2nd, 2006 5:03 AM
Revision 1
Syntax Master dannyboy
Tags exists | File | Folder | VBSCRIPT
Comments 0 comments

Checks to see if a file or folder exists
The fFile variable determines whether you're
looking for a File (True) or Folder(False)
The strName variable holds the fully qualified
path you're looking For
6
Date Submitted Mon. Feb. 20th, 2006 7:04 PM
Revision 1
Beginner RRSands
Tags Clipboard | CSharp | NETCF2.0
Comments 0 comments
Prior to NETCF 2.0, this was a royal pain. Now, it's pretty straight-forward.

These three related functions provide basic Clipboard operations for text. While not terribly useful by themselves, they become more useful when attached to a field's context menu or, better yet, implemented in a custom control.
11
Date Submitted Fri. Feb. 17th, 2006 4:49 PM
Revision 1
Beginner RRSands
Tags CSharp | Encryption | Security
Comments 0 comments
From RSA Security's website:
"RC4 is a stream cipher designed by Rivest for RSA Data Security (now RSA Security). It is a variable key-size stream cipher with byte-oriented operations. The algorithm is based on the use of a random permutation. Analysis shows that the period of the cipher is overwhelmingly likely to be greater than 10^100. Eight to sixteen machine operations are required per output byte, and the cipher can be expected to run very quickly in software. Independent analysts have scrutinized the algorithm and it is considered secure."

This implementation encodes the byte stream to be encrypted "in-place".

Example:
Byte[] Key = new Byte[5] { 12, 34, 22, 12, 32 };
Byte[] B = new Byte[10] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
// Examine B array before and after this next call.
RC4(ref B, Key);
// Examine B array before and after this next call.
RC4(ref B, Key);
7
Date Submitted Fri. Feb. 17th, 2006 3:49 PM
Revision 1
Beginner RRSands
Tags CSharp | Document | Execute | Launch | Run
Comments 0 comments
This snip opens any kind of document (e.g. .PDF, .DOC, .C, .HTM, etc.) using the default application associated with it. This relies on starting a new process with the .UseShellExecute property set to true.

The main overloaded function OpenDoc(filename) will open any associated document using the default OPEN verb. If you are trying to edit a file, for example, a command file, then you need should call OpenDoc with the "EDIT" verb. Some associations also a "PRINT" verb.

Since the return result is a System.Diagnostics.Process object, you can also monitor or kill the process.

Example:
OpenDoc("C:\\SomeDocumentation.pdf");
OpenDoc("C:\\AWebPage.htm", "EDIT");
OpenDoc("C:\\Test.txt", "PRINT");
System.Diagnostics.Process doc = OpenDoc("C:\\WebPage.htm");
8
Date Submitted Tue. Feb. 14th, 2006 2:59 PM
Revision 1
Coder mattrmiller
Tags File | Filter | Java | JFileChooser
Comments 0 comments
Set's a filter for what files to accept when using JFileChooser.
7
Date Submitted Thu. Nov. 17th, 2005 8:43 PM
Revision 1
Coder mattrmiller
Tags CheckSum | File | Java
Comments 0 comments
File CheckSum