|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
||||
|
||||
|
syntax to open a *.txt file
hi,
what is the syntax to open a *.txt file from within the program ? actually my output gets saved in a *.txt file, i want it to pop-up after i have run my program thanks, |
|
#2
|
||||
|
||||
|
more info
perhaps you could include more info:
no offense, but i would think after the number of posts that you have, you would be able to post a thread in a much better manner.
__________________
Two things have come out of Berkeley, Unix and LSD. It is uncertain which caused the other. |
|
#3
|
||||
|
||||
|
sorry,
yah Language - Visual C++ Compiler - Visual C++ system architecture - none or not known Not stream oriented actually this post is for a friend. thanks, |
|
#4
|
||||
|
||||
|
Quote:
rofl @ none or not known. if you're running Visual C++, it's obviously x86. since it's not stream oriented, i'm guessing he or she might be using functions like fopen, fclose, fprintf, fscanf, fgets, or fputs. any of those look familiar? why can't your 'friend' post his or her own problems (or solve them even)? also, why don't you just post up your 'friends' source code? that would provide much more insight to the problem. |
|
#5
|
||||
|
||||
|
If I am understanding your request correctly, before you end your program send a command to the command-interpreter by using the system function. i.e.
Code:
#include <process.h>
int main()
{
system( "notepad yourfile.txt" );
return 1;
}
You can find info on this in the msdn. |
|
#6
|
|||
|
|||
|
sorry for going off topic here but where can you get msdn?
|
|
#7
|
||||
|
||||
|
For the online reference:
http://msdn.microsoft.com But you should have also gotten the help library from the cd bundle that came with the Visual Studio. There are 2 cds with about 1 gig of help info. |
|
#8
|
||||
|
||||
|
Thanks OnSlaught, that worked,
now how could i close that notepad file after a few minutes ? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > syntax to open a *.txt file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|