Write a binary file





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

8
Date Submitted Wed. Mar. 29th, 2006 10:55 AM
Revision 1
Helper digitaljunkie
Tags File | MD5 | Perl
Comments 0 comments
Is this file the same as that file? The files may or may not be binary. We could compare the modify dates, or the sizes. But, those are not very accurate to know if a file has really changed.

Introducing MD5 Checksum. We can feed the files into Digest::MD5 in binary mode.

This is a great way to do Incremental Backups.

This is also an easy way to verify checksums when downloading files from the internet which list their MD5 Checksums.

You'll need the Digest::MD5 Perl Module.
8
Date Submitted Fri. Aug. 4th, 2006 4:16 AM
Revision 1
Helper axsaxs
Tags File | I/O
Comments 0 comments
Class method to read a binary file and copy it to a byte array.
8
Date Submitted Thu. Jan. 25th, 2007 11:16 AM
Revision 1
Helper RobHarrigan
Tags File | grab | lines | yank | yoink
Comments 0 comments
Use this utility to grab lines from a file. Arguments are the input file, starting ling number and ending line number.
8
Date Submitted Tue. Oct. 11th, 2005 9:50 PM
Revision 1
Helper ses5909
Tags CSharp | Email | Send
Comments 0 comments
Send Basic Email
8
Date Submitted Wed. Oct. 12th, 2005 9:50 PM
Revision 1
Helper ses5909
Tags CSharp | HTML | String | Strip
Comments 0 comments
Strip HTML Tags From a String
8
Date Submitted Sat. Oct. 15th, 2005 5:42 PM
Revision 1
Helper ses5909
Tags CSharp | Directory | Files | List
Comments 0 comments
List Files in a Directory in C#
8
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.
9
Date Submitted Wed. Oct. 25th, 2006 9:57 AM
Revision 1
Helper fastmike
Tags C | File | Java | String
Comments 12 comments
What is Dijkstra Algorithm? click on the link above and first understand what the algorithm is all about. in short it calculates the shortest path from A to F or vise versa. This code i can guarantee is the simplest and easiest code to understand. just search on google and try to compare this code and other dijkstra code and you will see what i am talking about. i spent alot of time myself and my instructor to guide me on the rite path.
http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm(Description)
to see how the algorithm really works go on this website it tells you step by step how to update the cost and which path to choose.
http://renaud.waldura.com/doc/java/dijkstra/
Please give some time to understand the algorithm first and then you can see my code. if you done understand the algorithm it is very useless. i know alot of people need Dijkstra algorithm in java for their HW assignment or Test. i am giving you the solution step by step. anyone who wants to understand please go to the url i have posted above and once you have understand then run the code and for those people who just want to copy so that they can get 90% in their test No Problem Here it is .
First open a notepad and name that file anything like data.txt or datas.txt and make sure the file looks something like this and in this format.
0 3 100 5 100 100 (100 represents infinity)
3 0 6 7 7 100
100 6 0 5 5 3
5 7 5 0 1 100
100 7 5 1 0 2
100 100 3 100 2 0
i name this file as a data.txt file. i have 6 nodes. and A is always the starting node which has the cost of 0 so by looking at the first line i
know that A to A have distance 0, A to B is 3, A to c is Infinity, A to D is 5, A to E is Infinity(means no edge connected with A), A to F is Infinity.
for second line(B to A is 3, and then vise versa) and for the 3rd line it starts for C and etc..
save the txt file by any name and then copy the code which i have posted and then to run type this:
javac routing.java
java routing data.txt
you will get the output. i will say this one more time understand how the algorithm works or ......................
9
Date Submitted Thu. Aug. 24th, 2006 8:31 AM
Revision 1
Helper axsaxs
Tags Attribute | CSharp | read-only
Comments 0 comments
Set the read-only attribute of a file to true or false.