You are here:

C/how to save the output in TXT format

Advertisement


Question
Good day to you,
I would like to know how to save the output of a simple program to a TXT format file in Assembly language . I know that it can be done in C, the file will be name as OUTPUT or any other name that i would like to call it. thank you very much.
im using MASM v 2.5

Answer
I don't do assembly programs.
I think there should be some way of redirecting the output.
If you can do it in C, then convert that to assembly by giving the command:
cc -S prog.c
You will get prog.s which will contain the assembly code for that.
It would give you a clue.

-ssnkumar

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Narendra

Expertise

I can answer questions in C related to programming, data structures, pointers and file manipulation. I use Solaris for doing C code and if you have questions related to C programming on Solaris, I will be able to help better.

Experience

6.5

Organizations belong to
Sun Microsystems

Awards and Honors
Brain Bench Certified Expert C programmer.
Advanced System Software Certified

©2012 About.com, a part of The New York Times Company. All rights reserved.