473,513 Members | 2,425 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C++ Builder Opening/Reading and Displaying Files

2 New Member
I am stuck on a problem that I am certain someone has already done. I use, in Borland C++ Builder 3 (kind of old):

TOpenDialog* dlg=new TOpenDialog(this);
dlg->Title="Open a New File";
dlg->Execute();

It opens the dialog box and I select a sample .txt file or .doc file to open. Then it's the problem. I have tried several examples and cannot seem to display its contents in either a memo field box or grid box. Anyone know how I can write the code to display the selected file?

I would like to keep the top part as it is, without having to change that part, which works.
Feb 21 '07 #1
3 6300
sicarie
4,677 Recognized Expert Moderator Specialist
I am stuck on a problem that I am certain someone has already done. I use, in Borland C++ Builder 3 (kind of old):

TOpenDialog* dlg=new TOpenDialog(this);
dlg->Title="Open a New File";
dlg->Execute();

It opens the dialog box and I select a sample .txt file or .doc file to open. Then it's the problem. I have tried several examples and cannot seem to display its contents in either a memo field box or grid box. Anyone know how I can write the code to display the selected file?

I would like to keep the top part as it is, without having to change that part, which works.
Are you trying to display (just display) the contents, or are you trying to edit them as well?
Feb 21 '07 #2
andymejias
2 New Member
Are you trying to display (just display) the contents, or are you trying to edit them as well?
I am trying just to display them. Thanks for replying.
Feb 22 '07 #3
abdelrhmanelshazly
1 New Member
hi i am trying to do the same but i want to edit the files as will

if you can answer us poth

many thanks
Nov 23 '07 #4

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

Similar topics

7
7068
by: John | last post by:
I have over 5000 thumbnail pictures of size 5kb each. I would like to able to load all 5000 pictures and view 50 per page using mysql_data_seek(). I would like to know what are the advantages and...
1
6740
by: Magnus | last post by:
allrite folks, got some questions here... 1) LAY-OUT OF REPORTS How is it possible to fundamentaly change the lay-out/form of a report in access? I dont really know it that "difficult", but...
2
7323
by: Mike Turco | last post by:
I like using the expression builder for a lot of different things but it isn't always available when I want to use it, for example in the code window, or in all of the control properties. I am...
1
1244
by: Ddraig | last post by:
Howdy, I was wondering if anyone could point me in the direction of some good code that will look at a folder of various text files, read in the names and then open them. For example opening...
4
2156
by: Pieter | last post by:
Hi, From my VB.NET 2005 application I need to be able to open Files an Directory's with their default application: - A word-doc must open in word - A excell-document in Excel etc - in case...
2
4557
by: rowin | last post by:
How to open a file (for reading) in C++ Builder using codes?
1
2364
by: GeeBee | last post by:
1) I’m using Borland C++ Builder 1.0 (a very old (but still good) version). 2) I have an application EXE calling a DLL. 3) A function in the DLL receives a parameter defined as "ostream &" , and...
9
2298
compman9902
by: compman9902 | last post by:
Hello, and thank toy for reading this post. Thus far, this website has helped me a lot, (I have finally finished my encryptor: "site removed by moderator", go to the downloads link) and I will...
1
2422
navanova
by: navanova | last post by:
Greetings, I have a problem of opening ms word and excel files on my computer. The files are there for a long time. I use to open and modify them. Suddenly, when i try to open the word files, a...
0
7264
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7166
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
7386
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
7534
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
5689
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5094
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...
0
4749
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
805
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
459
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.