Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Printing Data from Files in C / C++

Posted on 2004-09-22
6
Medium Priority
?
148 Views
Last Modified: 2010-04-01
Well I have created 2 files for dmmy project work. I want to print the records which are present in the files as requested by the user.  What command will help me print the record from the file to the printer?
It would be of great help if the help is from C point of view
Thanks
J2
0
Comment
Question by:coolguyj2
  • 2
4 Comments
 
LVL 30

Expert Comment

by:Axter
ID: 12123700
system("copy file.txt prn:");
0
 
LVL 30

Expert Comment

by:Axter
ID: 12123720
The above is a simple method for copying a file to a printer.

But a better answer can be provided if you give us more details of your requirements.

What OS?
What type of printer? (Printer connected to printer port or network printer)
0
 

Author Comment

by:coolguyj2
ID: 12132059
thanx for the reply...
actually, I am reading the file into an array and then will be splittin up array using sscanf()... now these details are displayed on  the screen. I want to print these details on the printer
How can I do it?
I am using Win XP... Printer is n/w printer... dunno all the details...
thanx
J2
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12687937
PAQed with points refunded (125)

modulo
Community Support Moderator
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

824 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