7,373 Topics

Member Avatar for
Member Avatar for edek

The program as it is generates: [ICODE]>Parent1 >Parent2 >In Child >Parent3 Successfull...[/ICODE] If I remove the comment from line 31 - just below "//THE PROBLEM:" so the "gets(buff);" is executed it gives: [ICODE]>Parent1 >Parent2[/ICODE] and... waits (both parent and child processes running - both waiting). I would like to be …

Member Avatar for vijayan121
0
261
Member Avatar for Littlen

Hi all Ive writing a simple j2me program to read from a file. Im running the midlet on a pda but im having trouble accessing the file. Im using J9 JVM on a Dell Axim, ive also installed the JSR-75 (which is need to access files), however im still having …

Member Avatar for Littlen
0
95
Member Avatar for Sirpi5678

When I start my computer my desk top icon's won't load. I have run Hijacthis and here is what popped up. Also, I've included my startup list. Thank you for any and all of anyone's help! Logfile of HijackThis v1.99.1 Scan saved at 12:27:51 PM, on 9/6/2007 Platform: Windows XP …

Member Avatar for shanghai_daily
0
331
Member Avatar for edek

[CODE=C]int test[2]; pipe(test); FILE *to, *from; if ((to = fdopen(test[1], "w")) == NULL) return 1; //error: could not create stream if ((from = fdopen(test[0], "r")) == NULL) return 1; //error: could not create stream fputs("test text", to); char testBuff[5]; fgets(testBuff, 5, from); puts(testBuff); //This should display 'test' in console - …

0
58
Member Avatar for romez

I have a log file (eg logfile.txt) which is continously updated (with the values on and off from various equipments) such as: CCC:on DDD:on XXX:off CCC:off EEE:on FFF:on DDD:off EEE:off XXX:on Now i have buttons on a vb.net form corresponding to each of the equipments such as CCC, DDD, EEE, …

0
44
Member Avatar for bondi007

when I try and drop a file into my apache folder it wont let me when I try and access my source server it wont let me, error do not have permissions :( Any Ideas? I tried loging in as root but it wont lket me at the login screen …

Member Avatar for bondi007
0
398
Member Avatar for cpp_noobsauce

Heres the problem: A scientist has been conducting experiments and recording results of those experiments. Two pieces of data per experiment have been recorded: temperature in degrees Celsius and a concentration ratio (in the range – 0.5 to 2.0). Validate user inputs. heres what I have: Part1 - Writing to …

Member Avatar for Ancient Dragon
0
116
Member Avatar for hercules22

hi all plz read below carefully All pc are connected in lan where one is win server wher i am sharing a file to give permission to a perticular user, structure is as follows 1)a)created one folder with name "test".b)shared with full permission for 10 user c)under security tab clicked …

Member Avatar for hercules22
0
163
Member Avatar for picass0

i have a text file that has delimiter. i wanted to display the test file that will take away the deliminter from my text file. i search through the net was told to use getline() which can include the deliminter. Hope that is someone who can show me an example …

Member Avatar for Nick Evan
0
91
Member Avatar for hercules22

hi all plz read below carefully All pc are connected in lan where one is win server wher i am sharing a file to give permission to a perticular user, structure is as follows 1)a)created one folder with name "test".b)shared with full permission for 10 user c)under security tab clicked …

0
41
Member Avatar for pythonuser

Hi , I would need to compare two jpg files using python. Could some one help me, how I can do this Thanks

Member Avatar for bodhankaryogesh
0
275
Member Avatar for it2051229

I'm reading a text file using a stream read and my code goes like this [ICODE] FileStream file = new FileStream("c:/data/theData.txt", FileMode.Open, FileAccess.Read); StreamReader streamReader = new StreamReader(file); // read the content of the first line of the data text file String line = streamReader.ReadLine(); while (line != "") { …

Member Avatar for $dunk$
0
108
Member Avatar for Divya123

I have written code for an application and now i need to put some code in class file and then by refererring to that class file need to again write this code What code to put in the class file the code which i have done is like this Imports …

0
77
Member Avatar for ownedswax

My friend has been expierencing some small problems on his computer, you guys have been extermely helpful in the past and if someone could help me claen up this HJT log that would be great! Thank you in advance! C:\Program Files\STOPzilla!\STOPzilla.exe C:\WINDOWS\system32\cidaemon.exe C:\Program Files\AIM6\aim6.exe C:\Program Files\AIM6\aolsoftware.exe C:\Documents and Settings\Owner\Desktop\HijackThis.exe R0 …

Member Avatar for ownedswax
0
180
Member Avatar for mofoparrot

Hey guys, I'm new here, I looked through the help also searched and couldn't find anything that helped. Although I will be using the Algorithms you guys have on this site. anyways I only took a intro course to C++ about four years ago and don't remember much I wrote …

Member Avatar for mofoparrot
0
132
Member Avatar for n8makar

sort of a noob as i have been doing c++ for only a couple months now. my problem is that i am using a function to pass data from a file into an array then into a .out file. the function im using to read the data from the file …

Member Avatar for vmanes
0
518
Member Avatar for bleonard989

I am having problems with my linked queue adt. I don't get any error messages, but it just isn't doing anything in the menu driven client code. It's just to test the queue to make sure it works correctly. The most problem I'm having is with my print function. If …

0
79
Member Avatar for Lucyuk

I have a Sony desktop VGC-M1 it's about 18 months old. I don't use it very often, just for university work. I turned it on to intall a new printer. I have no idea why but it went to system restore. So I thought I'd just restore it, there's nothing …

Member Avatar for jbennet
0
226
Member Avatar for Sh13

Hi, I am supposed to read data from an input file with following information 16 //number of destinations// Baltimore //origin city// MD //origin state// Lewes //destination state// DE //destination state// 117.0 //miles b/w previous location and and this one// 160 //estimated driving time// Ferry //place to visit in that location// …

Member Avatar for jephthah
0
94
Member Avatar for Jon Jon

Hi, I want to be able to use std stream objects to manipulate files, but some of the files are too big. I want to be able to do the folowing: >int64_t fileSize; >strm.seekg(0,ios::end); >fileSize = static_cast<int64_t>(strm.tellg()); >cout<<"File size is "<<fileSize; This code will output -1 if the size of …

Member Avatar for Ancient Dragon
0
82
Member Avatar for edek

I have (in main()) something like: [CODE=C]int toChild[2], fromChild[2]; pid_t pid; //Creating pipes: if(pipe(toChild) != 0){ return 1; } if(pipe(fromChild) != 0){ return 1; } //Forking: if((pid = fork()) == -1) return 1; if(pid == 0) {/* CHILD */ close(toChild[1]); close(fromChild[0]); //create streams: (they are not used in this example) …

Member Avatar for edek
0
109
Member Avatar for localp

if i want to read some text data from an input file stream, 01. what hapence if there is no data 02. or if the input file contains errors 03. or if the out put file contains error because of lack of storage space on disk.

Member Avatar for Salem
0
33
Member Avatar for queenc

hi the below code is used to read a uploaded file and print the first three lines in a document, it is working fine in a txt file .i have written the else part for doc file....it is working but junk values are also getting printed [CODE] <?php $lines=file('http://www.wb.com/judson.doc'); $lin …

Member Avatar for ultra vires
0
77
Member Avatar for DOPY

Hello i am using a public computer (im just starting out with c++) so i dont have the code on me but i have figured out how to create a text file. what i want to know is when i create it, it places it in the direcotry that my …

Member Avatar for DOPY
0
258
Member Avatar for kse989

The assignment is to, using the given header file, write an implementation file, a menu-driven test file, and a car wash simulator... [B][U]Please see attachment for complete instructions[/U][/B] This is what I have so far, I am having trouble with my print function... I am new to Queues and not …

0
75
Member Avatar for digital_ice7

why cant it work properly??? [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; int main(){ ofstream out;//create output stream int acc_num[10]; for(int x=0;x<10;x++) acc_num[x] = rand()%10; //generate account number char acc_file[600]; for(int x=0;x<10;x++) acc_file[x] = acc_num[x] + '0'; out.open(acc_file, ios::out);//create & open output file out << "PACKAGE ID: "; …

Member Avatar for Nick Evan
0
107
Member Avatar for Elmo_loves_you

Hi, I would really appreciate some help. I have a FileUpload control on my Asp.Net web page and want to store the file to a database as a varbinary(max) BLOB with other data via an sproc. However I am getting an error at the line [code] FileStream fs = new …

Member Avatar for Ramy Mahrous
0
396
Member Avatar for blazer2loud

I don't know much about networking at all. I started a thread asking the easiest way to link 2 computers to file share between them and was told to get a crossover cable. I got the cable and now am trying to get the files to share. I have one …

0
50
Member Avatar for mrnobody

Lets say I have a text file which contains a long list of 8bits data and i want to create a .wav or .au file from it. Forexample, my text file contains 8000 bytes for 1 second of audio with the sample rate of 8kHz. How do I create a …

Member Avatar for mrnobody
0
226
Member Avatar for dnk

i wanna to get size of file. help me how to get this. anyone know how to do this. any help will be appreciated :)

Member Avatar for Jx_Man
0
144
Member Avatar for Suraine

Dear c++ gurus, I'm new in creating a header file. never try before. ERm... i have write a header file with a program: [code] Header file: MySensor.H extern short int DetectSensor(int sensorvalue[10]) { ....; } [/code] [code] Program file: MyFile.C #include <MySensor.H> short int i; int p, sensorvalue[10]; int getsensorvalue() …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for wollacott

[code=c] #include <stdio.h> #include<string.h> main() { FILE * myfileptr; // a pointer declared to the file stream. char sc; // a character which will be input from the file. // main code... myfileptr=fopen("words","r"); //open the file hopefully while((sc=getc(myfileptr))!=EOF) //get a char { if(sc)printf("%c",sc); //dump it to screen } printf("EOF\n"); } …

Member Avatar for Aia
0
314
Member Avatar for roachic

Hi everyone. I was wondering what is the best way to check if a text file is empty? When I read from a text file: file.Open(path, CFile::modeRead); And then try to access it: file.ReadString(line) I get an error.. I have tried if 'file.end' but file.end returns true every time so …

Member Avatar for roachic
0
158
Member Avatar for cute121180

Problem statement: The program has to take input for DFA and for h() function that is for homomorphism. I am able to write the program in C++ only for DFA. I am unable to include the h() function. Moreover, my DFA program giving me an error. [code=cplusplus] #include <iostream> #include …

Member Avatar for cute121180
0
191
Member Avatar for bswapnil

[code=c] #include <stdio.h> void stripnl(char *str) { while(strlen(str) && ( (str[strlen(str) - 1] == 13) || ( str[strlen(str) - 1] == 10 ))) { str[strlen(str) - 1] = 0; } } int main() { FILE *infile; char fname[40]; char line[100]; int lcount=1,i=0; char mean[100]; /* Read in the filename */ …

Member Avatar for Ancient Dragon
0
132
Member Avatar for rohit83.ken

I have a C file of the following .When I execute this in Fedora 7 version 2.6.21-1.3194.fc7 and arch =i686 I get following errors [root@kwi-11156f06184 Desktop]# cc test.c test.c:3:20: error: libipq.h: No such file or directory test.c: In function ‘main’: test.c:12: error: ‘PF_INET’ undeclared (first use in this function) test.c:12: …

Member Avatar for jephthah
0
576
Member Avatar for jmines

I am new to streams and files in C++. I am having a problem in this code. When i run the program, and after entering the password, a message is displayed "error opening infile". Why the program is not reading from the file or opening it? [CODE]#include<iostream> #include<string> #include<fstream> #include<iomanip> …

Member Avatar for jmines
0
101
Member Avatar for blazer2loud

I have 2 laptops, one running xp pro and one running vista. I would like to know how to link these two computers to be able to get files from each other. I don't have any sort of internet connection. Thanks, Brian

Member Avatar for David Elder
0
77
Member Avatar for tie372

I have a form and upload script so people can upload games to my website. The form code: [code] echo "<form action=newgame.php enctype=multipart/form-data><table border=0 method=post bgcolor=1a1a1a><tr><td width=70%> game title</td> <td><input type=text name=title maxlength=48></input></td> </tr> <tr><td>summary</td><td><textarea name=summary rows=5 cols=30></textarea></tr> <tr><td>genre</td><td> <select name=genre> <option value=action>action</option> <option value=adventure>adventure</option> <option value=arcade>arcade</option> <option value=other>other</option> <option …

Member Avatar for petr.pavel
0
117
Member Avatar for pssturges

Hi, I'm trying to create a web ui that will run some scripts on my server (Ubuntu gusty). I want the user to be able to select some files on the server via some sort of file select form. The selected file path would then be passed to a text …

Member Avatar for sDJh
0
83
Member Avatar for betaven75

Hi guys, This is my very first thread. Now I would like to know about file handling. I have got this book, but the concept is still not that clear to me. So, can you guys suggest any online material that would help me in this regard. Also, could you …

Member Avatar for Narue
0
91
Member Avatar for spoorthisri

Please help me how to write into XML file using VC++ 6.0 this is example code where i am not able to write the data into XML File this is ScanComputer.cpp where i am trying to try into XML file [code=c++]void CScanComputer::saveParameters(const char *filename) { ParamIO outXml;//ParamIO.h is pasted below …

Member Avatar for spoorthisri
0
252
Member Avatar for LODEY

have a bit of an issue trying to obtain some data from a csv file using PERL. I can sort the file and remove any duplicates leaving only 4 or 5 rows containing data. My problem is that the data contained in the original file contains a lot more columns …

Member Avatar for KevinADC
0
124
Member Avatar for queenc

hi In my mail attachment i am able to recieve the attachment but the file size is 0kb. it is showing the below warnings please do tell the error in my code [QUOTE] home/wesite/public_html/profiles/resumes/153/ Warning: fopen(home/website/public_html/simple.txt) [function.fopen]: failed to open stream: No such file or directory in /home/website/public_html/mail_attachment.php on line …

Member Avatar for w_3rabi
0
254
Member Avatar for shers

Hi all, I have created a VB Script file that runs when the user logs in, and writes the username and date & time to a log file. The vbs file as well as the log file is a network location that contains more than 3 users. I would like …

Member Avatar for shers
0
74
Member Avatar for aamir55

i m working on a small application its main function is to create a album and then add photos in the album. i m using tree view for creating album and photos i m using tree root as album and nodes as photos. i have to also show photos when …

0
79
Member Avatar for BroKeN

Hi all I just singed in after 3 days of reading others posts and try to find a selution but i am lost !! My problem is kind of not new on my , but i thought when it started it is because of the internet connection that i had …

Member Avatar for BroKeN
0
100
Member Avatar for knight fyre

I'm trying to create a function that searches through all the beds in a hotel until it finds one that is available or just ends when all the records are searched. When it finds that bed, it updates that bed record with new information (marking it as reserved or occupied). …

Member Avatar for Aia
0
315
Member Avatar for tootypegs

Hi i have my code that finds every instance of my search criteria in a text file and tells me the position in the text file it is located at. The next step i want to do is stream the bytes that follow each instance of my search criteria into …

Member Avatar for vijayan121
0
142
Member Avatar for aamir55

i m working on a small application its main function is to create a album and then add photos in the album. i m using tree view for creating album and photos i m using tree root as album and nodes as photos. i have to also show photos when …

Member Avatar for sunnyjaswani
0
111

The End.