Programming :: Open Or Run A File/program Through A C++ Program

Jan 15, 2010

Ok so Basically i have 2 questions

1. i know how to create a file with c++ using but is there a way to save it to a specific location on your computer with windows and linux

Code:

2. i need to know how to run/execute/open a file in a c++ program im using and its not working

Code:

View 4 Replies


ADVERTISEMENT

Programming :: Open A Text File And Program Stops Working?

Feb 8, 2011

I opened a text file and read some stuff. Then I (think) I closed it. Then I tried to open another one and it stopped working. It seemed to compile fine though. Why would this be?

Code:
#include <iostream>// Libraries included
#include <string>
#include <fstream>
#include <sstream>
#include <list>

[Code]....

View 3 Replies View Related

General :: Make A Script To Open A Program Then Operate Within That Program?

May 7, 2010

I am new to linux and am trying out script writing. I am using shell. How can I make a script to open a program then operate within that program?

View 5 Replies View Related

Software :: Open Source Dvd - Cd Copy Program - Burning On The Fly Program?

Dec 14, 2009

Is there anything like burning rom from nero or roxio cd/dvd copier. Do you know of any dvd copying program? like without making the image and then burning with just one process just copy the disc sorta program like roxio dvd copier? I wanted to make copies of movies I made a dvd of but aside from image burn which is a hassle to make the image first. is there something for burning on the fly or dvd/cd copying? infrarecorder and cdburnerxp do not work for me at all.

View 3 Replies View Related

Programming :: Program A SH - Bash Program With Zenity To Play Radio Based On A Site?

Feb 15, 2011

I will have to code this. However I am lacking of time since I have too much to do. make a short code bash/dash to prompt the country with Zenity, then, get the PLS or m3u url and prompt with another zenity which radio to play. http://www.listenlive.eu/index.html

My code to get url's radio country.htm is:

Code:

View 2 Replies View Related

Programming :: Made A Program In Pascal But Cant Open It ?

Jun 13, 2010

On ubuntu i just compiled my first program using lazarus and i can open it in terminal fine but if i double click the file simply marked 'hello' nothing happens.

Here is the source:

PHP Code:

program Hello;

View 1 Replies View Related

General :: Program To Use To Open An Mth / Htm File?

Mar 4, 2011

My midterm instructions are in mth format. I wouldn't even know what program to use to open in Windows. The actual midterm itself is an htm file. I need help ASAP.

View 11 Replies View Related

Slackware :: How To Open A File With A Program

Nov 28, 2010

How do i per say open a file with like transmission when i am downloading it from the internet it says open with then you click it on firefox and it goes to root. Where do i find the files for opening a program instead of saving and going into the program and opening it that way?

View 4 Replies View Related

Installation :: Program I Use In Ubuntu To Open A .dat File?

Oct 25, 2010

I was wondering what program I use in Ubuntu to open a .dat file. Any one know?

View 1 Replies View Related

Ubuntu :: Can't Find Any Program To Open The File?

Jun 25, 2011

we had this cd called 3d arts and crafts and it created several images from one image. it saved them in a file format .dcp i can't find any program to open the file with now that i've changed system

View 3 Replies View Related

General :: Create A Program File For A New Program?

Mar 8, 2011

How do I create a program file for a new program?

View 1 Replies View Related

Software :: Horelease /dev Entry Of Unplugged Storage Device While A Program Has A File Open

Nov 6, 2009

I plug a USB device, it gets a /dev entry, e.g. sdf, i mount its filesystem, then some program opens a file on this filesystem. I unplug this device, its /dev entry disappears, but if i replug this device again, it gets another name - sdg.

How can i force the program to close the file so the filesystem is ready to be unmounted without using "lazy unmount" to release the device name, BUT so that the program doesn't crash after trying to make I/O to this file, and, of course, without having to kill the program?

View 4 Replies View Related

Programming :: Log Access File Program?

Nov 11, 2010

i want to make a program to write the result of access to a file ,i mean for example a user wants to (open,delete,edit)a file but if he has no access to this file ,something write to a log file.so after that i can check which user got access denied by accessing to which file.or if any tools available that can do this?or if there is any built in log access file that record the permission denied to files?

View 4 Replies View Related

Programming :: Parsing Xml File From A C Program?

Mar 14, 2009

i wanted to know how can I pars a xml file (read data from xml file) and from C program.is there any function to do this for me in C.

View 1 Replies View Related

Programming :: Program File Not Specify - Eclipse CDT?

Mar 7, 2010

An error occured during running a code. I've made run configurations properly and I've chosen GNU Elf parser,Elf parser, Mach-O parser and Cygwin PE parser as a binary parser. Eclipse CDT can not find any error in the code and code runs in terminal properly. Here are the code:

Code:
/*
* pmutex.c
*
* Created on: Mar 7, 2010
*/
#include <stdio.h>

[Code]...

Eclipse denies to run it.I've made an investigation over the eclipse.org, but I can not find any solution.

View 2 Replies View Related

Programming :: C++ Program Does Not Write File

Jun 26, 2011

I have the following problem. I call a C++ program from a Java servlet by using Runtime exec. The OS is ubuntu and I use Netbeans 7.0 with Glassfish 3.1 web server.The program executes but it does not open and write into a specified file in a specified folder. The same C++ program compiled under Windows opens and writes this file.How can I solve this problem in Linux?

View 2 Replies View Related

Programming :: Detect Opening Of A File Using A C Program?

Jul 19, 2011

how to detect if a file is being opened by any application so that i can block it just before opening it... Actually i am working on android and using iNotify in JNI to detect the OPENING of a file...but the file is getting opened before the iNotify detects it..and therefore its displaying the contents of the file unmodified .. The actual requirement is that if anyone is trying to open the file it should be modified by my program and then the modified file should be opened.

View 10 Replies View Related

Programming :: No Output To Log File From Daemon Program?

Mar 18, 2011

I am learning Linux daemon programming and write a simple daemon program. The issue is no data is written to the log file (/var/tmp/simpledeamon.log) though the file is successfully created (it's file size is zero from ls -l output). Could someone kindly point out the error in my program,The code is based on the Devin Watson's article at Here is the code:

// simplydaemon.cpp
// A simple Linux daemon.
#include <sys/types.h>

[code]...

View 2 Replies View Related

Programming :: .py File To Run In Terminal As A Console Program

Sep 3, 2010

i create a file with .py extension and run it then on windows it opens up directly in command prompt, but wat to do if i wish to do the same in ubuntu, i.e. i want the .py file to run in terminal as a console program, which does not happen as such.

View 14 Replies View Related

Programming :: Cross-platform LAN File Exchange Program?

Sep 2, 2010

I recently faced a problem. At my college, I linked my laptop with my friend's laptop with an ad-hoc wifi network. I wanted to send him a file. I was running Ubuntu, and he was running XP. Unfortunately, I could not find an easy way to send him the file. Another problem I faced was when I wanted to transfer the contents of my hard disk to another computer. I had to install Filezilla server on the other computer, and upload the files from one computer to the other.

I feel that its a really cumbersome method of transferring files in the same network. Mobile phones have bluetooth, and a file can be sent to another mobile very easily without any fuss. Does anyone know whether any such program exists already? If not, I want to write such a program that will allow one user to add another user to a personal network, and send or recieve files and/or communicate in other ways. The only language I know is Python (self-taught). I was wondering what GUI framework to use. I've never written a GUI program before, and would like to hear your opinions. This will be a very basic program, and must be able to run on many platforms.

View 6 Replies View Related

Programming :: Write A Program Which Will Read Input From A Text File

Apr 7, 2010

i am trying to write a program which will read input from a text file, check if each line contains any alphabets and then display a message imforming me if there is an alphabet in each line. My text file is formatted in this way...

[Code]....

View 2 Replies View Related

Programming :: (.text+0x7): Undefined Reference - Compiling Program Include One Header File And 2 C

May 21, 2011

i am a new programer in c i have write a simple app and i have a problem with combiling my program include one header file and 2 c

fun.h
#include<stdio.h>
void f();
/******EOF*******/
fun.c
#include"fun.h"
void f(){
[Code].....

View 6 Replies View Related

Programming :: Changing A Line In A Config File While Installing The Program Using Bash Script

Jul 22, 2011

I am trying to write a bash script that installs a program fully automated for me. I am stuck at the one part where i need to change a line in one config file. I have tried various syntax for sed and none have worked. Maybe someone can suggest how to go about this. Since the line appears in the middle of the file, I can't use echo or cat. Also the file will be diffrent lengths depending on the install.

The line I need changed is:

I need that changed to:

the last syntax i tried is:

Yes this is for PNP4Nagios on centos 5.6 64bit. If i can get this figured out. I will be willing to post the whole thing for others to use. it will be used to install PNP after a working nagios install is done.

View 11 Replies View Related

Ubuntu :: Sporadic With The Openoffice.org Program - Can't Open Any Open Office Programs Without Rebooting Computer

Jan 28, 2011

I'm having sporadic issues with the openoffice.org program. Sometimes, power point presentations will crash the program and then I can't open any open office programs without rebooting the computer. The problem seems to be just with powerpoint files and I'm not sure what the issue could be.

View 7 Replies View Related

Ubuntu :: Inbuilt Logging System - Ran And Installation - Program Opened Automatically - Can't Find Program Executable

Feb 23, 2011

I was wondering whether there is an inbuilt logging system in UNIX?

I ran and installation and the program opened up automatically but I can't find the program executable.

If I could find a log then I could locate this file.

View 9 Replies View Related

OpenSUSE :: Execute Program On Wake / Kill Program On Suspend?

Apr 15, 2011

I have problems to get it work. i have tried to use pm-utils, but it does nothing.

What is need is to kill application, when pc is going into suspend to ram and run that application again on wake. It's a graphical application.

View 1 Replies View Related

Ubuntu :: Program That Behaves Same As Microsoft's OneNote Program

Aug 29, 2010

Does anyone know if there is a program that behaves the same as Microsoft's OneNote program for linux?

View 3 Replies View Related

Ubuntu Multimedia :: Converting A Program And DVD Making Program?

Jun 23, 2011

i am running ubuntu 10.04. I am looking for a converting program and I also need a DVD making program. I'm unsure if one comes preinstalled already.

View 4 Replies View Related

Ubuntu :: Program To Open Rar Files For 9.04?

Jan 9, 2010

I am lookin for a program to open rar files for ubuntu 9.04, I have been haveing trouble locating one.

View 1 Replies View Related

Ubuntu :: Program Files Won't Open?

Apr 27, 2010

I have both Windows and Ubuntu on my laptop and I need to access the windows program files via Ubuntu (windows don't start). The problem is that the program files folder appears to be empty. Is there any way to retrieve data from ubuntu?

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved