473,399 Members | 3,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

To read the Data from Notepad

Hi

I need the code to read the data from the text file. And, i have the Starting Position and Ending Position of each Data. So, i want a funcition to give the data by passing the Starting Position and Ending Position as Input Parameters.

Currently, i am using the objstreamreader to get the data. But, i dont think it is having the function with Starting and Ending Position as the Input Parameters.

So, Please help me on this.

Thanks in Advance,
Selva
Mar 17 '08 #1
1 1150
r035198x
13,262 8TB
Hi

I need the code to read the data from the text file. And, i have the Starting Position and Ending Position of each Data. So, i want a funcition to give the data by passing the Starting Position and Ending Position as Input Parameters.

Currently, i am using the objstreamreader to get the data. But, i dont think it is having the function with Starting and Ending Position as the Input Parameters.

So, Please help me on this.

Thanks in Advance,
Selva
RandomAccess files are not directly supported in .NET.
You can,however, use a FileStream and play around with the seek method passing it the appropriate SeekOrigin enumeration.
Mar 17 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Chris | last post by:
I need to monitor a bunch of files to see what is being opened, read, and closed, with no modifications being made. This is being done first on Windows machines, and later on Solaris. Looking...
3
by: cv | last post by:
Hi all, I have to copy two set of data from 2 files(notepad/excel) say, products and their corresponding prices to list/textarea/table. I should be able to retrieve the product and corresponding...
2
by: GB | last post by:
Hi Everybody! I have 2 different processes/application. One is writing to a file and another is reading from it. For some reason the code doesnt seems to work and gives mscorlib.dll IOException...
9
by: Sandy | last post by:
can mfc application, send text data to opened notepad file in desktop?(live transfer of data) . can anybody help
6
by: Markus Ellebrecht | last post by:
Hello, I am new to this group and I hope someone can help me *g*. I am good in VBS but now I want to switch to vb.net because of getting crazy while creating every form in VBS with...
3
by: t2581 | last post by:
Hi , I have database db2 udb 7.2 with following table and datatype CREATE DISTINCT TYPE APP.NOTEPAD AS SYSIBM .CLOB(4096); CREATE TABLE APP.AP_NOTE_PAD ( CONTROL_LOCATION INTEGER NOT NULL...
3
by: Learning.Net | last post by:
How to read a Unicode data saved as ASCII in notepad file as txt ? I tried using streamReader but it is not showing Unicode data. eg. using (StreamReader sr = new StreamReader(test.txt) {...
11
by: csharpula csharp | last post by:
Hello, I would like to know how can I read a file by this way: Read from line X to Y and in other iteration from line Y to P and on and on. How to implement it? Which method and how? Thank u! ...
2
by: badwl24 | last post by:
Sir have saved some data in notepad like.... File = F:\Files\SWwork\My Assembly.SLDASM" " Mates" " Coincident1" "" " Coincident1" " Type = 0" " AlignFlag = 1" " ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.