7,373 Topics
![]() | |
Hi, I want to create a project in vc++ which is having an explorer by which I can explorer the entire file system. I am using visual c++ 6.0. Anyone can help me? | |
Hi, For some reason I can't make fopen work. It worked fine on my server, however upon putting the script on my clients server it started giving this error: [CODE]Warning: fopen(test.jpg) [function.fopen]: failed to open stream: Permission denied in <long path> on line 5[/CODE] From this call: [CODE]$File = "test.jpg"; … | |
[icode]18830042010000000000010000010.00 300420101004301512210344 881114065677 john smith 0000010.00 18801062010000000000010000435.20 010620101006011143170683 841208925437 luna barbara 0000435.20 18830062010000000000010001881.00 300620101006302037530018 872420036243 micheal jordan 0001881.00 [/icode] [COLOR="Green"]I have a text file contains information shown above. I would like to produce a php code where it can read the text file and then insert the extracted data into … | |
Hello, forum :) Does anyone know a c++ code that performs the same actions as a "tee" command does in linux? Basically what the tee command does is read an input from an input stream and directs it to two places: 1) Displays the input stream on the screen 2) … | |
[B]Problem:[/B] Write a program which reads a stream of integers from a file and stores them in an array. The array is then analyzed to compute the average of all the values in the array and all of the values that are above the average should be printed out to … | |
[CODE]image = new JLabel(new ImageIcon("C:\\Users\\user\\AutoTextSum\\src\\autotextsum\\newImage.JPG"));[/CODE] As you can see from the instantiation on the label above, I've used a static file referencing whereby I explicitly indicates the physical location. Let say this coding file name is autotextsum.java. How do I put the image without the need to explicitly indicates the … | |
I am making a program that reads football player stats from a file and places it in an array how ever my program seems to over read the file which has the stats of 17 players and it makes an array of 101 players with the first 17 being alright … | |
![]() | Basically I've looked everywhere for help with this problem and been unable to find any so i thought i'd ask here. I have a text file full of numbers which i wish to manipulate. the actual text file has about 200 rows and 10 columns, but in this example i'll … |
hey guys...!! i really want ur help in this program..!! its a Hospital management system program..!! it take input from the use..it can save input in a file..display all input on to screen, but i cant find a way to delete a record/patient details from the file PLZ help me..!! … | |
Hi.. I want to use the pear package.Pear is already on my xampp package.On the file php.ini the pear is included(I didn't change the file php.ini..there is a line like include_path = ".;c\xampp\php\PEAR").I used the following code to retrieve the results from database..But it is not working .. [CODE]<?php // … | |
Hi, this is my first time posting and I would like thank everyone in advance. I'm doing a homework assignment that requires me to design a teller application which simulates a bank. I'm currently getting a segment fault, after I call one of my getBranch(). I've tried to do this … | |
I wish you all the correct code)) Hi) There was a problem reading the file. Actually, I want to read from file command for MySQL (originally, this team is destined for Orcle, but I think it will be right for MySQL). I think the problem in the encoding (I do … | |
Hi there, I tried to to delete sorted number in each rows by reading a text file and write it to another file with a new format: such as readfile1.text contains 1, thoman 2, tom 3, jess87 4, kelly and so on.. I came up with this code and I … | |
hi, I am aware there are far easier and simpler ways to solve this problem, but due to certain circumstances, I am unable for instance to change filetypes etc.. so, here we go: using wordpress with the thesis theme, I need to append an html file(shop.html) onto a page(gardens). my … | |
Good Morning DaniWeb users, This will be the first time I use your forum to try and solve a problem. I'm an non-traditional student and live in Michigan. For those curious about where that is located; look a world map (for our international friends) and look for the United States, … | |
im a newbie here, im taking intro to programming wth VB in college and im having problem with the homework here's what im supposed to do 36. Read 10 digits contained in a text file into an array and then display three columns in a list box as follows: column … | |
Hi so I have this program to find the largest odd number from an array of 50, the program runs fine, but the problem is after reading the numbers from file it says the largest odd number is 0. Can some one please have a look for me and tell … | |
Write a program which analyzes a text file by counting the number of times each of the 26 letters in the alphabet occurs. You must use an array to keep track of the how many times each letter is seen in the text file. Uppercase and lowercase letters should be … | |
I've made an empty mynote.txt in the same directory, and open the following code with Internet Explorer, and allow to write on hard disk (when IE asked) but nothing in the text file: mynote.txt after the run. what is the problem? [CODE]<html> <body> <script type="text/javascript"> function WriteFile() { var fh … | |
I've made an empty mynote.txt in the same directory, and open the following code with Internet Explorer, and allow to write on hard disk (when IE asked) but nothing in the text file: mynote.txt after the run. what is the problem? [CODE]<html> <body> <script type="text/javascript"> function WriteFile() { var fh … | |
I was wondering. Is there a way to write something from one method in to a result file instead of outputting to screen? To describe a little better, in pseudocode: [CODE] #include <iostream> #include <fstream> using namespace std; class Inputoutput { private: ifstream fileOne; ofstream fileTwo; int i; //More variables … | |
Hi all, I am trying to read a file in C. The format of file is something like that : ----------------------------- <From: [email]sender@hotmail.com[/email]> Hellooooooooo. </from> <From: [email]george@gmail.com[/email]> What am I doing? nOwwwwwwwwwwwwww </from> ---------------------------- I would like to read the file and extract some info like number of emails , … | |
The code I'm writing reads in something like this from a file: 95 34 89 100 25 100 84 62 78 98 Mary Elizabeth Smith And outputs this to the same filename with a different extension: 88.25 Mary Elizabeth Smith I wrote a test program to test the calculation methods … | |
Whats wrong with this code. I can create the DAT file.Name and Grade is writing to the file perfectly. but the file contains ASCII values for RollNO and after Grade. [B]Output file:[/B] Name A ÈB [B]Program[/B]: #include<iostream.h> #include<conio.h> #include<fstream.h> #include<string.h> class stu { int rollno; char name[20]; char grade; float … | |
Hi, Please help... I am trying to read in a file in C++ and when I use getline I am not able to read in the last line when the last line in the input file does not have a newline (\n) at the end. How do I do this? … | |
i know how to get a file and all but how do u go about putting that file into the tree? my get file [CODE]void BST::loadFile() { cout << "Enter the the file location" << endl; cin >> inFileName; inFile.open(inFileName.c_str()); if (!inFile.is_open()) //test for file { cerr << "Cannot open … | |
Hello, I currently have been coding this. [CODE]Imports System.IO Imports System.IO.Compression Imports System.Windows.Forms Imports System Imports Ionic.Zip Imports System.IO.Path Imports System.Net.WebException Imports System.Net Imports System.Text Imports System.Net.Sockets Imports System.Security.Cryptography Public Class Main ' FTP upload Private Sub FTPU() If ListBox2.SelectedItem = Nothing Then MsgBox("Select world.") Else Dim clsRequest As System.Net.FtpWebRequest … | |
Hi All, I am trying to create an XML file that saves email addresses and files. This would then be read by another application and will send the emails and attach the files to the email. I am using the OpenFileDialog to get the file path and name. But when … | |
i have made this little program in GUI, Please help in these following error. 1st time when we save the data second time it comes to 2nd field name not on cnic field, it should ask cnic field first then other ask for other fields. Please any one guide me … | |
Hi, I am trying to achieve multiple file upload using Ajax, or at least it should look like ajax (without page reload). Below is my code... [CODE]<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>Uploader</title> <link rel="stylesheet" type="text/css" href="/django_forms_media/css/igp_edp-main.css" /> <script type="text/javascript" src="/django_forms_media/js/jquery-1.3.2.min.js"> </script> <script type="text/javascript"> var file_array = … | |
Hi all, Hopefully a quick one. I have some weblogic build scripts that configure a WebLogic Server environment. Previously DB connection credentials have been allowed to be stored in build property files. However new security regulations mean that this is no longer possible. I am trying to write a prompt … | |
Hey Guys, I had a question earlier about some bounds and i've got it all figured out after some intense debugging and some help. I just have one more simple question and I think I should finally be on my way. If I have a recursive function that returns an … | |
Hey guys, i'm working on a recursive problem that invlolves getting from a place "s" (start) to a part "e" (end) in as few moves as possible. There are road blocks "x" and the grid is a size up to 15x15. My problem is that when I try to write … | |
Hi, I am creating an application that uses Quartz.NET to automatically download and upload files to various sources (HTTP, FTP and Network paths) based upon a regular exprsesion. Users can select multiple paths for each download and upload operation, so a typical job may be to download files from a … | |
Hi, I'm having an error when running this program and I don't know what kind of error is it. So hoping someone can help me. Thank You!! Program: The input file is created with positive and negative numbers. When program ask for the input file it should be the same … | |
hey guys, i have a little problem i have got a method that removes the line of text in a file. for example if i specify a name and the name is on one of the lines in the file.txt it would remove it. what i want is that once … | |
I am finally learning about fstream but Im stomped with this problem that I have. I have a current file that I am opening. Each line of said file looks like this: D40001~10997~811~DANIWEB~555-555-5555~7.70~I~2111 There are around 5000 lines with different DXXXXX numbers. I want the user to input a dnumber … | |
I'm trying to write a program which uses 4 class files. However, I've got some issue regarding the error I got from cygwin using g++ command, it says Calling fdopen: bad file descriptor when I try to include the files I need on top of my header files. I'll show … | |
I want to implement a file lock using j2ME for mobile files...Can you please help me how to get started with? Can i get files in the emulator? I am using sun wireless toolkit 3.0 to implement it. I am designing it for symbian. | |
Using Visual Studio 2008...My assignment is to use the file SalesData.txt to load an array of structs, and use the array of structs to show to the screen a control-break report which breaks with each change in salesperson and shows each salesperson's total sales. I have not finished but I … | |
import java.text.*; import java.io.*; public class Assignment9 { public static double findMin(double[] numbers, int startIndex, int endIndex) { if (startIndex == endIndex) return numbers[startIndex]; else { double prevMin = findMin(numbers, startIndex, endIndex-1); if (prevMin>numbers[endIndex]) return numbers[endIndex]; else return prevMin; } } public static double computePositiveSum(double[] numbers, int startIndex, int endIndex) … | |
I guys, i have a problem with binary files A file is opened in the beginning of the main then a case to give the user a choice: 1.- Show the content of the file 2.- Search for a name 3.- Search for a type of crime 4.- Search for … | |
Trying to write to a file with this function in my program, for some reason itl make the file, it'l output the text on screen, it all works as intended, but i go to check on the file, and its blank inside. so im guessing im doin somethin dumb, help/tips … | |
How can I listen for new connection as well as lisstening for ongoing communication with TCPIP? I have the following code which properly listen for new connections, sends and receive data. However, if the client application sends new data from an existing connection I don't see anything. [CODE] using System; … | |
I am having a problem in getting a watermark on an image that is called from a database. I can static image static image to work fine, but when I try to use it on a dynamically called image, I get these errors. I am trying to merge two images … | |
Having problems with executing jobs using fork. The code is supposed to create one job and execute one job and repeat this multiple times. We are only supposed to use usleep in the jobgeneration() function. We are having trouble sleeping and executing ctrl-c in the execute job function. [CODE] #include … | |
Hello! So for my assignment I had to declare an array of 25 student objects and input data into them including another array of 5 test scores. All that is done and works flawlessly(At least that's what I think), but the last portion of the assignment is for me to … | |
Hey all, I have a text file and I want to find out the top 40 most used words in the text file. I managed to do that. But, I have another text file that has hundreds of "stop words." When looping through the text file to find out the … | |
Hi. I want to ask about this code. I'm trying to upload csv file and import into sql. but this code doesnt working.[CODE]protected void LinkButton1_Click(object sender, EventArgs e) { Response.Redirect("login.aspx"); } protected void Button4_Click(object sender, EventArgs e) { string filePath = FileUpload1.PostedFile.FileName; string filename = Path.GetFileName(filePath); string ext = Path.GetExtension(filename); … ![]() | |
I have to do an module program which downloads pdf files in the client side. Currently, when users download the file, the url of the downloaded file is viewed by the user. Modification instructed: 1. In the page where the file download is requested, the url of the downloaded file … ![]() |
The End.