7,373 Topics

Member Avatar for
Member Avatar for mikelle

// the output is coming out incorrectly. any suggestions? //here is what i have // Lab 4 read and calculation file/input // This program will read the data in the input file // used by grosspayMinustaxFileCode #include <iostream> #include <fstream> using namespace std; int main() // this is the error …

Member Avatar for VernonDozier
0
89
Member Avatar for tiggerk33

Hello, I have been searching everywhere to find out how I can save a picture from a PictureBox into SQL. Someone told me the best way to do it, is to convert it to a binary file and save it like that. This is what I have, it probably makes …

Member Avatar for tiggerk33
0
978
Member Avatar for grazcy

i'm doing a game function which able to save and load game function, i want to do it in a simple way cause only a few information need to collect. :cry: Here is the save method i use which able to write things into the .txt file which work correctly …

Member Avatar for DaKasper
0
198
Member Avatar for jpillera

I have an Oracle 10g application, built using Oracle PL/SQL Toolkits and PSPs, using an Oracle database with an HTML front-end (hosted by an Apache web server). When using the WPG_DOCLOAD package to add attachments to the database, the mime type for ".msg" files end up being application/octet-stream rather than …

0
54
Member Avatar for ibe123

Below is my problem... Here is my code... [code=cplusplus] #include<iostream> #include<iomanip> //allows me to use setflags/showpoint and set precision #include <stdlib.h> //for exit(1) #include <fstream> # include <stdlib.h> # include <cstdlib> using namespace std; int main() { double s1, s2, s3; ifstream inf; inf.open ("C:\\CS201HWASSGN6INPUTFILE.txt", ios::in); ifstream infile("C:\\CS201HWASSGN6INPUTFILE.txt", ios::in); //Input …

Member Avatar for Jishnu
0
186
Member Avatar for wandie

I have a created a page to upload images. Can someone please help me. When when I click on browse I would like the picture to go on the server and not change the image name. just to upload the image as it is. please help <?php include('../includes/cms.config.php'); require_once('login.php'); ## …

Member Avatar for nav33n
0
256
Member Avatar for jesseb07

hello, been googling this for a while and can't come up with anything good, so hopefully this won't be so easy to answer that it makes me look lazy. I'm writing an application for linux (gcc compiler) that calls various system and custom commands from inside my own program, nothing …

Member Avatar for jesseb07
0
157
Member Avatar for henpecked1

When I'm opening a file, is it the file that is text or binary or is it the stream that can be text or binary? Also, when I close a file is that when the stream object is destroyed?

Member Avatar for Ancient Dragon
0
128
Member Avatar for Siten0308

Hello, I have successfully added a wav file or audio file to my program, the problem is, i sent an email to my friend of the exe application but the wav file does not come with, how do i accomplish this if the wav file does not compile with the …

Member Avatar for selvaganapathy
0
207
Member Avatar for mesamb1

I am trying to write a simple php program that will up load files smaller then 200000000 bytes to my website, but I keep getting an error when I try to run it the initial HTML code is: <html> <body> <form action="upload.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file" …

Member Avatar for mesamb1
0
111
Member Avatar for ashikin_8119

Hi all; Really need your help on writing the shell script based on the condition below. I need to re generate file and display message on the status of the file. I need re-write the file by checking whether the first line starts with '1MBB'. If the first condition fail …

0
75
Member Avatar for Nemoticchigga

I want to read each line of text file and store each line into a giant buffer so I can look at all the contents. How would I do this? [CODE]int _tmain(int argc, _TCHAR* argv[]) { ifstream indata; // indata is like cin indata.open("example.txt"); // opens the file if(!indata) { …

Member Avatar for Lerner
0
114
Member Avatar for USUAggie

So I have figured out everything with this program, except one thing which is escaping me. I have created a General Tree(or sometimes called left most tree) where the node points to its left most child, and the child points to its right sibling and also its leftmost child. Creating …

Member Avatar for Duoas
0
230
Member Avatar for ruchika beddy

I m Using the Foll. method to Read the Contents of a File. If i m reading the doc,txt prog is working file. I m using the File "D:\pagefile.sys", ERROR is there,The process cannot access the file 'D:\pagefile.sys' because it is being used by another process. how To Read Contents …

0
70
Member Avatar for s7plc

Ok, I am fairly new in using Python, but have a pretty good understanding of it. But I'm up against something that I just can't figure out. I have an archived file that I am trying to take apart into individual files. It isn't a zip file, but an ascii …

Member Avatar for s7plc
0
255
Member Avatar for ronicasingh

Hello again, I've been around some threads here, some interesting, some piqued my interest. Like, forgive my ignorance, but how does one run a jar file. What special is required to run such a file? All I know is winrar a jar file and you get all these coded .class …

Member Avatar for stephen84s
0
261
Member Avatar for abhidev

hi all, I am new to VB 6.0 . I have created an application, which generates a .kml file which is the format read by google earth at a particular location. I want to be able to open the .kml file by clicking a command button. I am right now …

Member Avatar for bushman_222
0
96
Member Avatar for abhidev

Hey All, I need help with formatting a .kml file which is read by Google Earth. This .KML file is basically a XML file, so I thot I can get some help in this XML forum. I am new user of GE. Actually I have created an application in VB …

0
76
Member Avatar for USUAggie

When I test my stack with an int when I do pop all it seems to return is the address of the thing that I want and not the value, which makes sense since I return something by reference.. but I just cant seem to figure out what to do …

Member Avatar for Alex Edwards
0
143
Member Avatar for Traicey

What usually be the cuase of the file reading the wrong data, lets say I have a file and I wana read a date which is the 1st data in the file but instead is reading something else My file is more like the following but instead of reading the …

Member Avatar for Ancient Dragon
0
127
Member Avatar for riahc3

Hey :) Damn I hate pointers in C :P Worse thing possible. Anything I post my code: main.c [code] #include <assert.h> #include <ctype.h> #include <errno.h> #include <float.h> #include <iso646.h> #include <limits.h> #include <locale.h> #include <math.h> #include <setjmp.h> #include <signal.h> #include <stdarg.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include …

Member Avatar for Ancient Dragon
0
118
Member Avatar for masoud87

hi all i have a program for reading/writing files using windows API this program works properly but i have problem with program speed the time of reading the file is good but it takes very more time for writing the file here is the standard source code that my program …

Member Avatar for dougy83
1
116
Member Avatar for jencinas69

Hello I have this csv file 414060,440A,,,"QUECHAN INDIAN TRIBE SECRETARY- HIGHER EDUCATION DEPARTMENT Salary $8.00 per hour Position Closes May 9th, 2008 Position is responsible for providing administrative support to the Higher Education Department. Preparing office reports, maintaining the fi" 414297,445B,,," Come work in a great team environment. NOW HIRING …

Member Avatar for jencinas69
0
1K
Member Avatar for haber5

Hi folks I have a server written in C++ over ACE infrastructure. I'm using the ACE logging tools and here is how I create it in the main thread: std::ofstream* output = new std::ofstream (name); ACE_LOG_MSG->msg_ostream (output, 0); ACE_LOG_MSG->set_flags (ACE_Log_Msg::OSTREAM); I'm working with a multithreaded system and logging is working …

0
72
Member Avatar for acecombat

I'm trying to have VB open a basic 1 line settings text file but I want it (for first time users) to create the file if it doesn't exist, but I can't open the file without getting an error. How do I go about creating this file if it doesn't …

Member Avatar for selvaganapathy
0
1K
Member Avatar for Alex Edwards

Okay so I have a program that tests for collisions using a complicated and 80% accurate method, but I want 100% accuracy. Like someone posted earlier about shapes colliding into each other, I realized that there will be cases where my method wont work. However, I've looked into a calculus …

Member Avatar for Alex Edwards
0
132
Member Avatar for eranga262154

Hi all, I have a disk file define as [CODE]TCHAR szTempFile[MAX_PATH];[/CODE] What I want to do is, read that file into memory stream. To a buffer. How can I do it.

Member Avatar for eranga262154
0
321
Member Avatar for jimcc

So I have a simple dice program that lets the user make bets. If their current money pool is larger than the money pool in highscores.txt it will write the new score to the file. The program works as intended except for the high scores. When I try to write …

Member Avatar for Fuse
0
123
Member Avatar for Latte

How to count line of code in text file or file .cpp (this .txt file or .cpp file is the input file of program) and what's function for count line of only mark code for example of this code(file input) , I want to count only "do" function that have …

Member Avatar for VernonDozier
0
191
Member Avatar for camproject

I have a file dialog.i have filtered out the type of file i need.but how could i open the file in the application after selecting it?after clicking "open" in the dialog , i need to see the file.

Member Avatar for Nick Evan
0
330
Member Avatar for Rick McCoy

Im using WinXp ; When I rename a file; I get a message that tells me that I will lose the file association as it thinks i am changing the file extension also "as the file extension is listed in the name of the file". How to correct this and …

Member Avatar for ckurtz
0
87
Member Avatar for Fuse

Hi there. I'm new to Python. I started learning it 3 days ago. I've figured out everything by myself so far, but this is stumping me: Whenever I load a file such as a html document or a text file, it loads fine. But when I load this gif or …

Member Avatar for woooee
0
408
Member Avatar for iansane

Hi, I have a readFile() function that reads a csv file into a vector. The first two lines of the csv are collum headings. After reading and displaying the file on screen, replacing ","'s with spaces, it asks if the user wants to append new entries. If yes, it calls …

Member Avatar for Duoas
0
142
Member Avatar for gtrashing

Hi, I'm tring to write a script that as to be executed by root on linux... This script execute other bash script normally like root, the problem was that I have to log what my script do. I choose the logging library... Perhaps I have to write the log in …

0
41
Member Avatar for Scruffstone

Hi All, I'm new here so apologies if there's something not quite done right in my first post on here. I'm fairly new to Perl but this is the first bit I've tried to write at home on my own. I want to have a .pl file that runs in …

Member Avatar for Scruffstone
0
150
Member Avatar for Bouras

Hey... I present myself.. Youssef, 17 years old and i'm currently on my second year of the IB Program ... Computer IB HL i took. As some of you might know our IA = Internal Assessement is a Java Database and now mine is due wednesday... [PART I] and i …

Member Avatar for sillyboy
0
250
Member Avatar for mnbcxz

Hi I am having a problem coding a save/change button on my form which I want to be able to edit a record in a text box then save the changes made, it will save it in a sequential dat file. At the moment it will just overwrite the entry …

0
41
Member Avatar for Sultan5000

Hello All, I program in VB6 and C#. I am having a problem with the Vista ver of Media Player 11. I am running SP1, and the problem is not restricted to one particular computer. Audio files are not playing to the end. They are stopping about a half-second or …

Member Avatar for Smalls
0
111
Member Avatar for saidin0111

I'm having issues with my 3d programs mostly, especially games. a few days ago, they suddenly started getting about 1-2 fps, while reporting that they get 12-15 fps, which is considerably lower than what they had been getting. I haven't installed anything for some time and assume that something is …

Member Avatar for saidin0111
0
420
Member Avatar for saidin0111

Okay, these processes have always ran at normal priority, but now they have jumped up for some reason. I can't change the priority manually w/ task manager b/c windows says that they're critical system processes. I need to return them to normal priority b/c they seem to be robbing my …

Member Avatar for caperjack
0
491
Member Avatar for mustafaneguib

hey guys, how are you all. i am having a little problems in linking my files. i am using gcc compiler. the command line that i use is g++ -c player.cpp to create the first object file player.h [CODE=c++]class Player_Type { private: int id; string fname; string lname; string team; …

Member Avatar for mustafaneguib
0
166
Member Avatar for MiTiM

I'm trying to read two data (different types) from binary file (First I had written these data in it). I have problem with output. it's really unexpected: 0.000000000000000000000000 and 10000. Where's the problem in reading double data type? (OS: win xp; compiler tc 3.0; similar result i get with Visual …

Member Avatar for MiTiM
0
2K
Member Avatar for muthu raj

[B]error follows:[/B] [code]The email was sent. Warning: fopen(C://Program Files/xampp/htdocs/samplemuthu) [function.fopen]: failed to open stream: Permission denied in C:\Program Files\xampp\htdocs\samplemuthu\mail2.php on line 58 Warning: fread(): supplied argument is not a valid stream resource in C:\Program Files\xampp\htdocs\samplemuthu\mail2.php on line 59 Warning: fclose(): supplied argument is not a valid stream resource in C:\Program …

Member Avatar for muhammadfj
0
213
Member Avatar for sbv

hi.. to read a document file in Asp.Net and Vb.net as a Code behind , Use following Code [code] Sub Read(ByVal RPath As String) If RPath <> "" Then Dim WordApp As New Word.ApplicationClass Dim filepath = Server.MapPath("images\Resume\") & RPath Dim File As Object = filepath Dim nullobj As Object …

Member Avatar for sbv
0
237
Member Avatar for sheady

[INDENT][/INDENT]I have created a Program that first searches and returns the contents of a file into a richedit then opens up the next file finds the matching record and displays that in the rich edit and then the same again with another file. [INDENT][/INDENT]My problem is that when i search …

Member Avatar for afripino
0
276
Member Avatar for sreelatha

Hi, I have a requirement that i have two files, one is input file and another is log file(both will contain the same data mostly). I need to compare these two files and if any difference found then those lines should be write to another file(3rd file). I done googling, …

Member Avatar for sreelatha
0
3K
Member Avatar for sowmyask

I have a file names abc.txt on desktop. I wanna copy it to d:\workfile folder. If I use the code-- File.Copy(strsourceFilePath,strtargetFolderPath,true); I am getting a exception that Access is Denied. If I use Move method ,File.Move(strsourceFilePath,strtargetFolderPath); am getting the exception Cannot create a file , already exists. Can anybody help …

Member Avatar for sowmyask
0
122
Member Avatar for antwan1986

Hi everyone and thanks for reading. I'm having problems validating the file size of my uploads. With my current script, If I upload anything that is over 2Mb, I keep getting the error about file types rather than the ones about the file size. Even if I dont submit anything, …

Member Avatar for tanha
0
312
Member Avatar for JoE Guana

Hey guys, i'm new here and i'm also new to C++. I have a task where I have the user input a file name and then the program loads it into an array of type struct then finds the top 3 values and outputs them. I am so stuck right …

Member Avatar for VernonDozier
0
218
Member Avatar for mnbcxz

Hi I am having a problem coding a save/change button on my form which I want to be able to edit a record in a text box then save the changes made, it will save it in a sequential dat file. At the moment it will just overwrite the entry …

0
35

The End.