473,509 Members | 3,095 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Opening a txt file to view ( i.e. readme.txt)

I am writing a program in Visual C++ 6.0. It has a GUI with a bunch of
buttons. I want to be able to allow the user to view a txt version of a
readme of help file to provide information on the functions of the
buttons. I want have a menu option on the main menu to open this text
file for viewing.

Is there anyway I can do this using C++?

Aug 29 '05 #1
2 1765

Sameen schreef:
I am writing a program in Visual C++ 6.0. It has a GUI with a bunch of
buttons. I want to be able to allow the user to view a txt version of a
readme of help file to provide information on the functions of the
buttons. I want have a menu option on the main menu to open this text
file for viewing.

Is there anyway I can do this using C++?


Yes. The GUI parts should be done with your GUI libs (MFC or plain
windows) but the file part is standard C++.

HTH,
Michiel Salters

Aug 29 '05 #2
Sameen wrote:
I am writing a program in Visual C++ 6.0. It has a GUI with a bunch of
buttons. I want to be able to allow the user to view a txt version of a
readme of help file to provide information on the functions of the
buttons. I want have a menu option on the main menu to open this text
file for viewing.

Is there anyway I can do this using C++?


Yes and no. You cannot do it using only the _standard_ C++ means. You
should be able to write a C++ program that would use Windows API to do
what you want, but it's OT in this newsgroup. Try a newsgroup with the
'windows' in its name.

V
Aug 29 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4381
by: Alfons | last post by:
Hello, I have build a program that can do file transferring between a Windows XP computer and a DOS computer via a serial port. The Windows program I have build in C++ with Visual Studio 6.0....
28
3234
by: Madhur | last post by:
Hello what about this nice way to open a file in single line rather than using if and else. #include<stdio.h> void main() { FILE *nd; clrscr();...
11
4621
by: Gaurav Agarwal | last post by:
Hi All, Am looking for a python script that can convert fileformats to txt format. Am unable to find anything in python. Currently the InfoCon projects looks pretty good to use, but it is return...
1
2205
by: Lethos | last post by:
How can I open text file for readind? Just like some programs open readme.txt
5
1969
by: bimeldip | last post by:
Hi, I an tryin to create a html page where users can choose a file and open it however, i keep getting it wrong.So far this is wat i've worked on: (open.html) <html> <head> <title>Opening...
6
1657
by: Max58kl | last post by:
Hi I am trying to allow the user to view the contents of a txt file via the command line. When I run the following script, pressing enter after naming my txt file (which is in the same directory...
1
1245
by: Raymond Pittman | last post by:
Hi I need to know how to save my name in a data file named myfile.txt any help for a beginner.
2
2568
by: abhaybhat | last post by:
I run a batch file, which is nothing but a make file of my project. It also does linting for me. Hence the execution of the batch file in the DOS window can be seen, which is very huge(i have...
3
6620
Looking2Learn
by: Looking2Learn | last post by:
Hey, I'm trying to open a txt file, but I won't know the first three characters of the filename. For example, I want to open a "user.txt" file, and I know it will have three digits in front of it,...
0
7234
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
7136
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
7412
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7505
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
5652
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,...
0
4730
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...
0
3216
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3203
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.