7,373 Topics

Member Avatar for
Member Avatar for Jyncus

I'm attempting to read in various numbers and chars from a text file using ifstream. I've read through a lot of C++ File IO and can't see why my two int variables, numOfVars and numOfCNFs, aren't getting assigned in the Parser::BuildCQF() method. The code below shows my Parser.h, Parser.cpp, the …

Member Avatar for MrSpigot
0
114
Member Avatar for dotnetnoobie

Hi, I have a problem creating an XMLTextReader from a file on disk. Its an ASP.NET application written in VS 2005. When the application is deployed to IIS6 it runs fine but when run from visual studio the XMLTextReader is not populated from the file on the disk. I've checked …

0
51
Member Avatar for Eager_Beever

I have an ASP. Net 2.0 website with C# 2005 as the programming language. I am using CSS for the layout. Currently I am using a plain/static .Gif image as my header. I would like to enhance the look by using some animation in the header. I used some flash …

Member Avatar for jbisono
0
79
Member Avatar for sajithkahawatta

:sad: :sad: my web page C#.net is work properly in my iis .but when i publish in another server it give errers.i used vs2005 and ms word 2003. but in the server there is no vs2005 or word installed. it has only .net frame work installed.folowing the error, Parser Error …

Member Avatar for hermsen
0
765
Member Avatar for emanmae

So i have this homework assignment and im having a problem figuring out how to get the numbers from this file and finding the agerages. heres what i got so far. [CODE]#include <iostream> #include <iomanip> #include <fstream> #include <string> using namespace std; int main () { // Declarations string reply; …

Member Avatar for emanmae
0
187
Member Avatar for bilawal420
Member Avatar for bilawal420

Using Windows API's how can i copy to another file and Get different properties of a file (size, type, date created and more). i had done reading and writing file plz someone reply me quickly

Member Avatar for siddhant3s
0
75
Member Avatar for drdaco

Hi Everyone, retrying c++ after a 10 year hiatus. F/C scientific programmer here :) So I have this really really long data file. It has a header and I want to locate the heading just before the data rows begin. The heading size may change from different sources, but the …

Member Avatar for drdaco
0
116
Member Avatar for jrynik

Hello, I am working on a program, part of which is opening a file. As I expect the program to check if the (text) file contain certain data. That's why it would be useful if program users could enter the file to check. I've tried to do it by combining …

Member Avatar for jrynik
0
147
Member Avatar for nanchuangyeyu

Hi, I am now writing a simple program for testing file I/O and an advanced vector class. Unfortunately I have encountered some confusing problems. My code is as following: [CODE] #include <cmath> #include <string> #include <iostream> #include <sstream> #include <fstream> using namespace std; class mVect { private: // NO PRIVATE …

Member Avatar for nanchuangyeyu
0
130
Member Avatar for cam875

I am trying to take a a file of fixed size and use seekp to jump to a particular spot in the file, write around 100 bytes or so but only to that part of the file while still keeping the size of the total file the same and not …

Member Avatar for cam875
0
87
Member Avatar for NuGG

I was wondering if it is possible to print a file with out viewing it first by using a hyperlink on a webpage. Bacically i want users to print off a form (doc file) by clicking a link. eg: -so the hyperlink would be here: kings-head-inn.com/print/linkpage.html -and the doc file …

Member Avatar for essential
0
135
Member Avatar for love_dude1984

hi.. im writing a macro in Excel to copy a selected roe into a text file. i ve taken a button on a sheet and when user clicks on the button the selected row (only selected row) should b copied into a file on c: seperated with ","... ive written …

Member Avatar for love_dude1984
0
109
Member Avatar for Lukezzz

I am reading a .txt file line by line and when the line in the file is "Hello1", I want to Replace that Line with "Hello2" but I dont get that to work. I think I miss something out here [code] //Save this emailadress to the RouletteDataBase file String Path …

Member Avatar for landonr
0
280
Member Avatar for saadjaved14

Hey... ok before i start i want to say that i'm not a very good programmer... and i'm new with this... and i got a project that i have to submit in 2 days so i badly need help!! ok the problem is: I'm using binary file handling, a code …

Member Avatar for ArkM
0
107
Member Avatar for weary01

hi there, i do hope someone can help with my delima. yes this is homeowork but i am 80% through my program and only wish to get some guidance on my program. my program has a number of things it has to do and one the things i am having …

Member Avatar for NathanOliver
0
117
Member Avatar for Siberian

I've run into a problem when I try to download a file from a web site the dialog does not pop up saying [B]save to file[/B] instead I have to use the FireFox plugin [B]IE Tab[/B] switch the tab over to an [B]IE Tab [/B][I]and only then[/I] will the dialog …

Member Avatar for caperjack
0
76
Member Avatar for atarischad

Today I was copying a file from my laptop onto my USB external hard drive when the transfer froze and I had to cancel it. The file is still intact on my laptop but the unfinished copy created on my external hard drive does not seem to want to be …

Member Avatar for govi
0
755
Member Avatar for Vinzcent

Hey, I have a problem when I'm trying to delete an image file. I always get an error that says: IOExeption was unhandled. Acces denied because the file is beining used by another process. I do'nt know what process that could be and how to solve it. [CODE]private void comboBox3_SelectedIndexChanged(object …

Member Avatar for serkan sendur
0
76
Member Avatar for sanatkumar

Hi all, I have a java program which runs repeatedly by calling to main functions in a loop based on a condition ..But after running for some time(say 30 minutes),it shows the follwing error and it terminate the program execution.But as per my requirement i want to run this program …

Member Avatar for kvprajapati
0
105
Member Avatar for tasosa

[code=language] #include <string.h> #include <stdlib.h> #include <stdio.h> /* uni() function takes an array an thier size.and it produce an array which is include unique element */ int uni(char **arr,int size) { int unique = 0; /* The length of dst after removing duplicates */ int n=size; char *dst[n]; /* The …

Member Avatar for Narue
0
193
Member Avatar for abazoskib

[CODE]<?php //set where you want to store files //in this example we keep file in folder upload //$HTTP_POST_FILES['ufile']['name']; = upload file name //for example upload file name cartoon.gif . $path will be upload/cartoon.gif $path= "/home/content/a/b/a/abazoskib/html/snapit/photos/".$_FILES['ufile']['name']; if($ufile !=none) { if(copy($_FILES['ufile']['tmp_name'], $path)) { echo "Successful<BR/>"; //$HTTP_POST_FILES['ufile']['name'] = file name //$HTTP_POST_FILES['ufile']['size'] = file …

Member Avatar for nav33n
0
255
Member Avatar for bmcutler011

[code]#include<iostream> #include<fstream> using namespace std; int main() { dnode<double> *listA = new dnode<double>; dnode<double> *listB = new dnode<double>; int val1; //first set of integers int val2; //second set of integers ifstream inFile; //declares the inFile //Read in a file to build the two lists inFile.open("lnkList.in"); //Open the input file //statement …

Member Avatar for Ancient Dragon
0
105
Member Avatar for Joe Hart

Hi, Below is my code. Hopefully it is in the correct format. I would like to know how to ask the user the dir and file name of certain file formats (they are red in the code) and have the program take those answers and put them into the program, …

Member Avatar for shadwickman
0
167
Member Avatar for strickenUK

The program is suppose to write and then read data from the binary file and use seekg to display specific data depending on what is entered by the user. It displays the correct information when 1 is entered but not 0. Any help would be greatly appreciated. [CODE]#include <iostream> #include …

Member Avatar for strickenUK
0
852
Member Avatar for gyu12345

hi guys, need help urgently on extracting data from text file and compute it. i'm suppose to sum up the highest temp and divide them by 7 to get an average decimal. only display data on compiler without calculating the average sum. ok here is my code. #include <iostream> #include …

Member Avatar for tux4life
0
153
Member Avatar for transplantedNYr

I am new to java and many of the nuances to this language. For my class assignment we need to finish our methods which I have already done and do not want any help with. What I need help with is reading the data from the file with in "main". …

Member Avatar for transplantedNYr
0
160
Member Avatar for puk

Hi, The problem i'm having is that the data that i want to appear on the file doesnt apear fully. I want the full results of the program to be saved to a doc file but i only get the next number in the sequence. Here is my code # …

Member Avatar for BestJewSinceJC
0
100
Member Avatar for tfurrows

I am modifying the WDK "genprint" Print Processor example. Everything is working great, and I can compile fine, but I am running into a snag with one thing. Part of my modification knowingly triggers a print error, and Windows re-submits the print job automatically in the spool. I need to …

Member Avatar for jephthah
0
120
Member Avatar for dolly37

Hi all, I want to write a perl script which will parse a .cpp file to extract the member variables of a function and log them into a text file. Then I have to read this file using Tk and display the contents of the file. I have the perl …

0
72
Member Avatar for mlohokare

Hi all, 1] I have to create one html file which uses javascript. 2] HTML page can be accessed by user and can fill the; [A] Folder path along with file name 3] There will be a button, after click on that a batch file [already present but without any …

Member Avatar for Airshow
0
581
Member Avatar for ankit894u

[CODE]#include <iostream> #include <fstream> using namespace std; void PrintError(fstream&, char, bool&); int Conversion(fstream&, char&, bool&); int main() { fstream InFile; char Bit; int Decimal; bool BadBit = false; //Open file to read InFile.open("f:\\Binary.txt",ios::in); //Read the first bit of the number InFile.get(Bit); //continue reading all numbers till the end of file …

Member Avatar for WaltP
0
146
Member Avatar for Peyton

Hi there, Say I have created an ifstream object in main(): [CODE]ifstream [B]inData[/B]; // Create new input file stream object inData.open( "input.dat" );[/CODE] How could I then pass this object to a function, instead of having to recreate it there? I.e. what would the argument and parameter look like? Thanks …

Member Avatar for ArkM
0
10K
Member Avatar for Rezeyra

Hey guys, I don't think this is an actual hardware issue so I posted it here...it might be, but I don't think so. I bought a nice new laptop from Compaq about 3 months ago at Best Buy. It's a Presario CQ60-214DX Notebook PC. So I tried out the microphone …

Member Avatar for HoustonIT
0
99
Member Avatar for GregBlast

Hi, I'm building a little file compression system that is supposed to allow grouping a hierarchy of multiple files and then compressing them and the contrary. For this I don't take care of the file type to keep it generic but I'm getting a problem when the file is an …

Member Avatar for GregBlast
0
105
Member Avatar for mem81

Hi guys, I have spent a morning working on this. Not sure if I will ever get it right. What I want to do is read a text file and based on list of constant values split the original file in two smaleer files. One of them to contain only …

Member Avatar for Ramy Mahrous
0
74
Member Avatar for ejiroy

I am making a program that reads from a .txt file and outputs the names that are in my .txt file into an output file that the user specifies. My program compiles but then I get an error that says "int main(): Assertion `fin.is_open()' failed. Aborted" What am I doing …

Member Avatar for siddhant3s
0
186
Member Avatar for caliguy1979

Hi, I know its possible submit a form serverside without actually creating a html form. As you can see below: string url = "http://websiteToSubmitTo"; HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url); string proxy = null; string data = String.Format("parameter1={0}&parameter2={1}&parameter3={2}", parameter1, parameter2, parameter3); byte[] buffer = Encoding.UTF8.GetBytes(data); req.Method = "POST"; req.ContentType = "application/x-www-form-urlencoded"; req.ContentLength …

Member Avatar for Ramy Mahrous
1
211
Member Avatar for tintincute

hi I'm doing an exercise from a book, where I created a project called "Example.cs". When I wrote the code, here are the steps involve: 1. Select New Item. This causes the Add New Item dialog to be displayed. Select Code File and then change the name to Example.cs, 2.Next, …

Member Avatar for Ramy Mahrous
0
116
Member Avatar for Atomika3000

I've got to make a Property To Let program that can allow the user to add, view or delete property details to and from a text file. I have done the add and view part but i am having trouble getting the delete working. I've managed to get it to …

Member Avatar for Atomika3000
0
140
Member Avatar for sfzab

I work and have to save an important file in four other locations besides a Linux HD. Instead of having to save the same file for four more times, I would like to automate the procedure through a linux script file in which the [B]first[/B] saved file on the Linux …

Member Avatar for sfzab
0
321
Member Avatar for alexms

hey, im having a problem getting file stored into linkedlists. the program crushes when start reading. [B]these are the structs:[/B] [code=c]typedef struct category { char categoryID[5]; char categoryName[25]; char fareType; char categoryDescription[250]; unsigned numItems; ItemTypePtr headItem; //ptr to item struct CategoryTypePtr nextCategory; } CategoryType; typedef struct item { char itemID[5]; …

Member Avatar for nexocentric
0
2K
Member Avatar for ankit894u

[code=cplusplus]#include <iostream> #include <fstream> using namespace std; void PrintError(fstream&, char, bool&); int Conversion(fstream&, char&, bool&); int main() { fstream InFile; char Bit; int Decimal; bool BadBit = false; //Open file to read InFile.open("f:\\Binary.txt",ios::in); //Read the first bit of the number InFile.get(Bit); //continue reading all numbers till the end of file …

Member Avatar for ankit894u
0
117
Member Avatar for Peyton

Hi there, I am having a problem with the following code: [CODE]#include <iostream> #include <string> #include <fstream> using namespace std; int findRows( string line ); int main() { string line; int rows = findRows( line ); cout << "Number of rows: " << rows << endl; } int findRows( string …

Member Avatar for Peyton
0
159
Member Avatar for carloscarlos

When I try to print data to a file, I am getting an error dealing with security saying that I don't have permission to write to a file. Can anyone help me out? Here is the code //import packages import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.io.*; import java.util.*; import …

Member Avatar for Frickelmeier
0
111
Member Avatar for tkal

Opening a image file gives an empty file. A .txt file can be opened. Opening the image file gives no view available.

Member Avatar for tkal
0
136
Member Avatar for shalomalom

So lately I have been having certain programs I go to open state that I am not able to open them due to a certain error and it'll be like 00008300000x78 something of that nature right. Plus, the computer is running very slow (it does anyway but even worse now). …

Member Avatar for jholland1964
0
605
Member Avatar for genieuk

Hi, I got two files a php file to process and record data to a text file Now when a visitor visits a page on my website.... it records some information about them and it is sent to process.php and then process.php then records the data in a .txt file. …

Member Avatar for Josh Connerty
0
215
Member Avatar for Moe

[I][/I]Hi Everybody I am writing a socket program on a smart device. What I am trying to write is when client connect wit server, server send the file name that cllent can download. Then client must choose one file name and send that file name to server. Then the server …

Member Avatar for Acedia
0
133
Member Avatar for mem81

Hi guys, I am trying to create an windows application. What I need to do at this stage is I am trying to read a tab delimited file and the that same tab delimited file to go to another text file on my C drive. I have written some code …

Member Avatar for mem81
0
117

The End.