Hi, everyone
I want to reading data from file for a line to use ZwReadFile.
For example, I read just one line from file, and save to user buffer.
Then, I read next line from file… etc.
Is it Possible?
If it is possible, how can I use ZwReadFile?
Do any other function, I’m using?
Thanks in advance.
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are talking about formatted I/O.
ZwReadFile is doing unformatted I/O.
An easy way would be to read char after char and look for end-of-line
character.
This is simple assuming your file is in ASCII format or UTF-16 (in most
languages),
otherwise yuo’ll have to manage all the shift bits etc…
Johny.
-----Original Message-----
From: lbo [mailto:xxxxx@esecurity.co.kr]
Sent: Wednesday, January 16, 2002 3:50 AM
To: File Systems Developers
Subject: [ntfsd] Is it Possible reading data from file for line…
Hi, everyone
I want to reading data from file for a line to use ZwReadFile.
For example, I read just one line from file, and save to user buffer.
Then, I read next line from file… etc.
Is it Possible?
If it is possible, how can I use ZwReadFile?
Do any other function, I’m using?
Thanks in advance.
You are currently subscribed to ntfsd as: xxxxx@camelot.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You should check the source for scanf or ReadLn (C or Pascal).
Once you do, you will se that these buffer file reads, so that,
ZwReadFile is called to read the data, but data is taken from the user
cache, not the system cache.
So, yes you can do what you want, but you have to rewrite the entire
thing, virtually.
Regards, Dejan.
lbo wrote:
Hi, everyone
I want to reading data from file for a line to use ZwReadFile.
For example, I read just one line from file, and save to user buffer.
Then, I read next line from file… etc.
Is it Possible?
If it is possible, how can I use ZwReadFile?
Do any other function, I’m using?
Thanks in advance.
You are currently subscribed to ntfsd as: xxxxx@alfasp.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
–
Kind regards, Dejan M. www.alfasp.com
E-mail: xxxxx@alfasp.com ICQ#: 56570367
Alfa File Monitor - File monitoring library for Win32 developers.
Alfa File Protector - File protection and hiding library for Win32
developers.
Alfa Registry Monitor - Registry monitoring library for Win32 developers.
Alfa Registry Protector - Registry protection library for Win32
developers.
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com