search
Search keywords
Category
Featured Scripts
MailWorks Professional let's you create and manage your own e-mail marketing campaigns.
We offer FREE voting polls for your web site.
The new auction site that has all the features of a successfull market place.
Banner Advertisement to give you a channel to present your products to a targeted Web Development audience.
Give your Script the exposure it deserves! Your script will be displayed on each and every page header.
Your script holds one of the top positions and seen first when browsing through your Script's category.
Viewing: Read Data from a file

Viewing: Read Data from a file

Read Data from a file
.NET > File Handling
Modified: 28/04/2008
Script ID: #287
Listed by: Fanstorm
License:
Free license(s) available (license information)
Platforms:
Undefined
I have created a small application by which you can read from a file and display the contents of the file onto the browser.
There are ways of reading the opened file like:
streamReaderObj.Read()
Reads the stream character-wise. It returns an integer value equal to the ASCII equivalent of the character read. This is also used in reading the Binary Stream Input. If the end-of-file is reached then it returns -1.
streamReaderObj.ReadLine()
Reads a line of characters from the current stream and returns the data as a string. if end of stream is reached then it returns Null of "".
streamReaderObj.ReadBlock(buffer, index, count)
Reads data from the stream. The difference in this method is that the readblock method reads data bytes equal the number specified by 'count' into 'buffer' starting from the 'index' position in the 'buffer'
streamReaderObj.ReadToEnd()
Reads the data from the current stream position to the end of stream.
License Information
  • Free
Direct link to this listing:
Rate this script now
hits: 228
downloads: 0
reviews: 1
rating: 2.0 / 5 (1 votes)
Script reviews & Comments

Script reviews & Comments

Review title:
hi
Date added: 05/06/2003
Review by:
Seeki
hello,can you tell me
how can I read text
from a file and then
translate it into different language?
Write your own review
Write a script review

Write a script review

  
Full Name
This is a required form field
Email address
This is a required form field
Tooltip
Title
This is a required form field
Tooltip
Comments
This is a required form field
Tooltip
Rating
This is a required form field
Tooltip
Enter the characters displayed above
This is a required form field
 
Required field - Denotes required field
Banner
Statistics
Today
  • New listings
    4
  • Downloads
    184
This week
  • New listings
    5
  • Downloads
    727
This month
  • New listings
    8
  • Downloads
    1921
Total
  • Members
    11328
  • Listings
    4957
  • Downloads
    732429
  • Categories
    313
  • Reviews
    717