?
Solved

How do I open a TFileStream

Posted on 1998-03-08
3
Medium Priority
?
245 Views
Last Modified: 2010-04-06
I am attempting to open a TFileStream in order to read/write
one file out to several files.  The problem is that when I attempt to open the stream i incur a access violation.  Where am I going wrong?  Unfortunately the help files are extremely lacking in this area....
0
Comment
Question by:tognettm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 5

Expert Comment

by:ronit051397
ID: 1360254
before opening, did you write TFileStream.Create?
0
 
LVL 1

Accepted Solution

by:
TheSwine earned 200 total points
ID: 1360255
var
  X : TFileStream;
  Buf : Byte;
begin
  X := TFileStream.Create('C:\Temp.Dat',fmCreate and fmOpenWrite);
  X.Write(Buf,SizeOf(Buf));
  X.Free;
end;

If you still have something not working please attach your code.
0
 

Author Comment

by:tognettm
ID: 1360256
Thanks for the help!  
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question