Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 30, 2012 03:59 PM by Anil Srivastava
Dec 28, 2012 07:34 PM|LINK
Dec 28, 2012 07:49 PM|LINK
fh = fopen('c:\\FileName.txt', 0); // Open the file for reading.
if(fh!=-1) // Check if the file has been successfully opened.
length = flength(fh); // Get the length of the file.
str = fread(fh, length); // Read in the entire file.
fclose(fh); // Close the file.
// Display the contents of the file.
Dec 28, 2012 07:51 PM|LINK
How many places are you going to ask this question? Spend some time and give details on your question. LIke where the file lives. Yikes.
Dec 29, 2012 04:55 AM|LINK
@jprochazka, I'm getting the following error message:
the value of the property 'fopen' is null or undefined, not a Function object.
What is the problem?
Dec 29, 2012 06:18 AM|LINK
You have to use a technology like silverlight.
For more about this, I suggest you to post your question on the
silverlight forums if you decide to do it with silverlight.
Please 'Mark as Answer' if this post helps you.
Dec 30, 2012 02:59 PM|LINK
NOTE: Works in HTML 5 compatible browsers!
Hope it helps u...
Dec 30, 2012 03:59 PM|LINK
use System.IO namespace
if u r using character != -1
if using string != null