7,373 Topics
![]() | |
Alright, so in yesterday's thread, I asked for the codes to copy the contents of a directory to a separate directory. The code: My.Computer.FileSystem.CopyDirectory( , , ) worked fine. However, I have decided that I wish to add a progress bar into the mix so that the user can see … | |
Here is class that can be fed directly from split stream like one number per line file (or [URL="http://www.daniweb.com/software-development/python/code/321725"]generator producing 'words'[/URL] from multiple numbers per line). | |
Hello, I need help to combine a c-program using curl(to retrieve txt files from internet) and another c-program using popen. currently the popen is using the command ls -l (to list the current folder in terminal). I have 2 files, the first one is curl program, which have to retrieve … | |
Hi all, The project I am currently working on is an Address Book which works off a csv (specification takes the mick as a database would be so much easier), the method to write the lines of information into the CSV is in the class DataLayer and takes a String: … | |
i am doing a project on student information system using file handling...i made my own project but it didnt work....i read many books but actually the main problem is that i lack logic.....i have found from the net this project but the output on the notepad file is giving unusual … | |
Hi All, I wanna to search a pattern in a txt file called A which is a 2D matrix from another file called B. The requirment is that I need to output the number of matched pattern in file B. But I encounted difficulty of counting the number. Basically I … | |
I open the Ubuntu Software Center and I search for Scribus. It shows three options and I choose one. A blank window appears. The window should, instead, give me the option to download what I chose. I am a total noob and I apologize in advance. Thanks! | |
Hi, I have received an application that stores some properties in a file. The existing struct looks like this: [CODE] struct TData { UINT uSizeIncludingStrings; // copy of Telnet data struct UINT uSize; // basic properties: TCHAR szHost[MAXHOSTLEN]; //defined in Sshconfig UINT iPortNr; TCHAR szTermType[MAXTERMTYPE]; // login properties: BOOL bTelnetLogin; … | |
I need to write censor program that 1-reads in the text from a file 2-creates a new file where all the four-letter words have been replaced by “****”. can you help? this what I have so far [CODE]import string def main(): filename = raw_input("File: ") text = open(filename,'r').read() text = … | |
Hi guys, first off just wanted to say that this website has been immensely helpful to me for my programming class. I asked a question to help with a lab a couple of weeks ago and was able to figure out the issue with the forums help, so thank you. … | |
Hi!, I have a text file that contains a 2 dimensional matrix, and I will have to deal with many different files with different matrix dimensions, so I decided to use vector of vectors as they double their size automatically. the problem is that I don't know how to get … | |
I'm modifying a page that handles content addition. I've been tasked with allowing simple PDF file uploads, but can't figure it out. The PDF is to be posted, then uploaded and the title saved into a database field. All this functionality is to be contained within the one content addition … | |
Hi there. For some reason I am struggling with this problem. The purpose of this problem is to take an existing .py file and change it so instead of writing to a screen, it has to be written to an output file. The output file will be a csv file. … | |
I get the following Error from the code below: Warning: require_once(JS/Extractor.php) [function.require-once]: failed to open stream: No such file or directory in C:\Users\gross.t\Desktop\choicegrid\jsextractor.php on line 12 Fatal error: require_once() [function.require]: Failed opening required 'JS/Extractor.php' (include_path='.;C:\Users\gross.t\Downloads\pear\;/library/') in C:\Users\gross.t\Desktop\choicegrid\jsextractor.php on line 12 [code]<?php $path = '/library/'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once … | |
Hello there. I'm trying to make a program which can input elements (integers) and sort them, then input them in a txt file. I've made the functions (write on file, read from file, sorting elements), but now I need the following.. When I use a file on which I have … ![]() | |
HI folks, This is my code. How can i pass a outside structure parameter to a class method? [CODE]using namespace std; struct status { char name[80]; double balance; unsigned long account_num; }; class FileHandler { public: FileHandler(string); ~FileHandler(); int getRecords(struct status *); int putRecords(struct status *); private: string fileName; fstream … | |
HI, I'm writing a code for the very first time, and I'm completely stuck. Some guidance would be great. I'm writing a C program that reads integars from file "integars.dat". The program should show how many numbers you have entered, how many among them were even, and how many were … | |
hello, Below is the program written to enter item description, price and date of purchase. finally it is going to give the total amount. here i wanted to write the output of this program to a file created and saved on the desktop .To create a file, i have used … | |
Hi Any suggestion on how to save an image file into mysql using the .NET api? I tried code similar to this : MemoryStream stream = new MemoryStream(); byte[] imgData; //previously available image in the program Image.Save(stream,ImageFormat.Jpeg);// saves the image into the stream imgData = stream.ToArray(); //now I have the … | |
I am trying to write the string to text file after heap sort.... it works correctly, just don't know why there's some weird charracter in the output file.. Any help with be appreciated. Content of input file in1 is abc efg ghi q w Thanks [CODE]#include <stdio.h> #include <ctype.h> #include … | |
Hello, Working on my final project for a Java Class and have become stumped on the final leg of the code. We are supposed to create a program to add a record, remove a record, display a record, and list all records. The records must be written to a file. … | |
Hi .. I have this program, its reding correctly but its not doing what i want i.e. it suppose to read the input file and call the functions according to the action saved in the file this is the problem : [CODE] #include <iostream> #include <Fstream> using namespace std; void … | |
I have a file of name PROFILES.DAT in which several records are stored. I want to create some new fields in those records so I made a new program to read the file, store records in a structure, copy the structure elements into a new structure and finally write the … | |
Hi All, Iam using a webservice to downlad the html, audio and video files from the broadcast server and save it in the relay server after creating the folder, but the file is not getting created and also not able to download the files and iam getting Event 1309 warning … | |
In writing a logging program for a SDK Engine, I have come across some problems. The logging function works fine when called with test programs, but when I run it in a full test of the SDK Engine, no file is ever created. I added some testing lines to make … | |
I am writing code to open file and read info from that file to open other files, dont' know why it's only open the first file, not file after that THanks [CODE] /* strtok example */ #include <stdio.h> #include <string.h> #include <iostream> using namespace std; void remove ( char str[] … | |
I am writing a code to read file and output stuff for two files and combine them together... Don't know why they read good at the first file but wit the same code , it didn't show up for the second file Please help Thanks [CODE]#include <stdio.h> #include <string.h> #include … | |
I'm trying to do disk reads and writes when programming in C++ in the win32 console mode. I can create the file on disk using CreateFile(), but I can't figure out how to read or write to that file. I used the ReadFile() and WriteFile() functions but I just get … | |
Hi All! I got a problem with one of my files where I can't upload a file to my database. I want to save the path in the db but it gives me an error and says the "Filename cannot be empty". In my .html [CODE] Upload a profile picture(50px … ![]() | |
Hi All, I am tring to using the below function to read in a .txt file, which consist of a 10x10 matrix number. I just cannot find out where goes wrong, it appears such a funny number -858993460... [CODE]void readinput(int in[][MAXCOLS]) { int row ,col,ip; //Declare row,col, ip as int … | |
Why do you think the Java language chooses to treat file data as a stream rather than as a single object? | |
Hai , I have gris fro student listing. And I need to export this list to pdf. But i get the error msg like: Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified … | |
Can someone help me convert my .cs file to aspx.cs I thought I could just put my same cs code into this file that would open a webpage but apparently things are different. I need this because I have a login file that has three options for the user, the … | |
Hello everyone. I am having a problem with my program; it is supposed to read values from an input text file, put the data into a structure, then output the data from the structure into a binary file. The first 2 parts work fine, but I keep ending up with … | |
I have an iPhone 3g. I use the Notes app, and the Voice Memos app. I'd like to transfer the notes I have written, and memos I have recorded, to the Mac. Can this be done? The iPhone is synced (and therefore backed up) daily, so there must be backup … | |
I want to open different file names, at first it work well on couple files, but it has to be in order, what if i open random file like fall01, fall05,srping09 etc Thanks [CODE]#include <stdio.h> #include <string.h> #include <stdio.h> #include <stdlib.h> using namespace std; #include <iostream> int main() { FILE … | |
![]() | Hi, I have excel sheet which contain 100 and 100 of email and corresponding name. I need to seprate them according to the number of occurrence of their name. eg: name email chandran [email]chan@gmail.com[/email] maidhu maidu2yahho.com karan [email]karniii@nii.in[/email] Chandran [email]chan@gmail.com[/email] Chandran [email]chan@gmail.com[/email] karan [email]karniii@gmail.com[/email] excell sheet contain name and email, … ![]() |
Hi everyone, When I try the code below with data in a txt file, I have no problems and the data prints properly and neatly on the screen. (Note, one slight modification when using a txt file, instead of getline (ist, ignored, ','), I do getline (ist, ignored, '/t') to … ![]() | |
![]() | This is what my professor provided me in his own words. "Write a program that copies the contents of a text file specified by the user and copies it to another text file "copy.txt". No line in the file is expected to be longer than 256 characters." Here is part … |
Hi i need to create a form in a .html file myteamform.html, then take the data entered into the form and process it in a .php file "roster.php" which takes the data and adds it another.html page team_roster.html. I have my form done, my problem is how do you add … | |
I am not getting all numbers but only last number while readind data from file. And it has to be done with fscanf function.[code]/* input n nunbers fom user and write it in the file.find it's sum and write the ans. in another file */ #include <stdio.h> #include <conio.h> void … | |
I dug a lot around the internet to find a .Chr Editor/Opener .CHR file I pointed refers to the one Borland Made. It is a Character Set File or more like a Font file.. Turbo C++ uses this file format. I was hoping if anyone could help me find its … | |
i am writing a program that reads the file i create. The file has grades and weights of grades anddd 3 person but i need to create a program that will read the information from the file, calculate and print the total average of each student given by the formula … | |
Hi, This is probably some basic knowledge but I haven't found it out. I have this snippet of code that is causing me problems: [CODE] HANDLE hFile; char lpBuffer[100] =""; char idBuffer[100] = ""; DWORD ofs; strcpy(lpBuffer, fingerprint); strcat(lpBuffer,"\0"); hFile = CreateFile(buffer,GENERIC_READ|GENERIC_WRITE,FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL,NULL); WriteFile(hFile,lpBuffer,sizeof(lpBuffer), &ofs, NULL); strcpy(buffer,""); if(ReadFile(hFile, … | |
Hello, I'm trying to read a text file which is on the web and then insert its contents in a database using PHP. I think my code is okay but I keep getting this error message which I think might be permission problems so I just need clarity on this. … | |
I have a bcp output file from sybase that i need to parse using 'c' and write to a new file. A sample line from bcp o/p file is below 9890000501:74667:0:6::2:0000:0:6:0:5:0:0:0:0:0:0:0:::9890000501:1:1:0::::::::0:0:3::::::::::\202^B:\202^B^D:0:0 :1:0:0:0:0:0:0:0:0:0::::0:0:0:::::::::0::0:0:0:0: The file has ":" has the delimitor. I need to create a new file with a single line … | |
Hi, I having problem with enter file name to read file it give me result like this [CODE] Please Enter Ship File path or Ship File name: data Segmentation fault: 11 [/CODE] Here is my code [CODE] #include <stdio.h> #include <stdlib.h> struct harbour { int harbourId; int maxCap; int timeUpload; … | |
Hello Daniweb! :) I am brand new to this site, and wish I didn't need the help but I do! So let's give it a go shall we? I have a program I have been working on for about two weeks now, and I feel like it should not be … | |
i have to count three districts 1, 2, 3 whom said no and whom said yes, which i had saved it in notepad the three districts. i have to use the while loop. i was trying ifstream iFile; inFile.open("vote.dat") while(district1 == yes) { cout <<"the district 1 said yes: "; … | |
Hello, I am very new to python. I have two files containing multiple lines of files name, and I need to filter out if file name present on file1 than remove it from file2 and save the file2 difference into a third file. i.e. file1: /users/ux454500/radpres.tar /paci/ucb/ux453039/source/amr.12.20.2002.tar~ /paci/ucb/ux453039/source/amr.1.25.2003.htar.idx /paci/ucb/ux453039/source/amr.1.18.2003.htar.idx file2: … |
The End.