6,015 Topics
![]() | |
Hello, I was asked to write a program that starts with a JFileChooser, the user is asked to choose a file. If at anytime during any part of this program, the user hits "cancel" or "yes" when the dialog shows "do you want to continue?" the program will return back … | |
Okay here is my question, I have an text file file which looks like this BASKETBALL John Jacob 58% 15points FOOTBALL Jason Smith 24% 1touchdown BASKETBALL Mark Ramos 23% 25points BASEBALL Isaac David 10% 2 homeruns FOOTBALL David Sarlo 10% 0 touchdowns I am attempting to take a list like … | |
I am creating methods that will extract info out of a text file. The program is for a real estate office manager who needs to run reports on property listings. The text file will contain property number, property type, price, and agent id as follows. [CODE]110001 commercial 500000.00 101 110223 … | |
Hello guys, I have a text file which I have to read it from my code which is Ok. THE PROBLEM : the program has to read the file and just take and extract or print some part of the text file. it means Strings between 2 Words. Here is … | |
I want to know how to read a file in Java and then store the file contents into a String object...like String[] content= file contents?? here's the code of reading a file and i want the contents to be stored in a string variable... [CODE]public static void main(String[] args) throws … | |
Hi all, I'm new to c++ and currently i need to write a program to open csv file and store all data into a vector of double. After trying my codes for few days, i have encountered a problem. I couldn't load all columns of csv data into an array.Please … | |
Hi Am trying to update Bios on computer and have been to the manufacturer's site to get file and it's an exe file. The instructions said to extract the .exe file, and I get a bin file that says default program to open it with is VLC also. PowerIso won't … | |
[CODE] #include<stdio.h> #include<conio.h> #include<malloc.h> int main() { int i=0,j=0,n=0; char *a,**b; a=(char *)malloc(sizeof(char)*50); printf("Enter your text\n"); gets(a); while(a[i]!='\0') { *(b+n)=(char *)malloc(sizeof(char)*20); //error for(j=0;a[i]!=' ';i++,j++) { *(*(b+n)+j)=*(a+i); } i++; n++; } printf("Words in given text are \n"); for(i=0;i<n;i++) { puts(*(b+i)); printf("\n"); } printf("Possibile combinations are \n\n"); for(i=0;i<n;i++) { for(j=0;j<n;j++) { if(j!=i) … | |
my address variable equal at address =C:\\prpgm\\prpgm\\program.accdb but its change every time and address doesnt work in file.copy what must ı write in parantesis that will be equal to address forc ever time File.Copy("adress", | |
hey guys.. I'm trying to create a bunch of children where the parent creates child1, and child1 creates child2 and the parent creates child3 using fork()... and I'm supposed to pass a message through using a pipe, but when I pass from child2 to child3 I have to use a … | |
Soo my program is working...but there is just one problem...null is also being printed along with the content or string from the file... is there anyway i can stop null from being printed. The code read asks a user to give a filename .txt then the user is asked a … | |
Dear all, I have created a webpage and a SQL database runs in the background. When user enters options in the query page of my webpage, they get some tables with results. I want to provide an option to the user to download the results in tab-separated, tabular (excel) and … | |
Hi I want to load data from a flat file into a SQL table. The file has a header row and detail rows, all of which need to be loaded. I've tried various suggestions I came across in forums and EndOfStream is the one that loaded all the rows. The … | |
Hi, I am also stuck with a problem in writing into the file .below explanation also helped me but my issue is yet not solved .I want to edit my file which looks like IG_UDP_CPORTS="22,5060,5062" TG_TCP_CPORTS="1,2,3" EG_TCP_CPORTS="50,2" IG_TCPP_CPORTS="60,62 IG_UDP_CPORTS="5060,5062" I want to delete any value written in first line ( … | |
Hi all, can anybody please tell me whether is it possible that through windows service we can able to move file from one machine to another....??? what i made is first i checked with normal windows application ,by creating a mapped drive to my machine. ex:- Y:\ and i was … | |
![]() | Hello, I am currently allowing users to upload videos via php $_FILES[][] and then converting them using ffmpeg. I am wondering if there is a more efficient way to do this than using php. I have read that ajax might be useful (that's what vimeo uses). Could anyone point me … |
Hi, The was my application works is that my C++ .exe will create a .bat file, which will then in turn run the .bat file. [CODE]ofstream myfile ("tmp.bat"); if (myfile.is_open()) { myfile << "keytool –import –alias exe –file cert.cer –key example\n"; myfile.close(); system("tmp"); [/CODE] The batch file is created, however … | |
Holla, is possible to store log message in datagridview? or store log in file and after read text from file... i like tohave DataGridView somehtink like [CODE][Header] [B]User Date ErrorType Text[/B] Admin 22/9/2011 15:31 PM LoginFail Failed Login john 26/9/2011 05:33 PM LoginSuccess Login OK john 29/9/2011 22:20 PM LoginSuccess … | |
I get an"Invalid Boot.ini file booting from C:\windows" message when starting up . I use WIN XP. I have done a search for this file which shows 0kb as contents. The computer boots up after this message but I tried to repair or reinstall win xp but because of this … | |
Hello forum, Vaironl here. I have to do an assignment for school and I was about 3 hours designing the prototype and everything was going right but I had to add arrays and a for loop to my system and after that everything just got ugly. Therefore I started from … | |
![]() | I currently user logon information stored in one file, i wish to be able to delete users from this file currently i am selecting the users from a lstbox which retrieves all the user names from the txtfile. [CODE]Public Sub CmdRetrieveUsers_Click() LstUsr.Clear CmdEditUsr.Enabled = True Open App.Path & "\Logon.Password Info.txt" … ![]() |
First off, this is my first c program and i am by no means a programmer so ignore me if i don't meet your standard and let those willing to show me how it is done respond. Problem Statement: I am trying to use "strtok" to tokenize the strings in … | |
Hi! I want to read a text file word by word to string and display it in a text box. Given below is my piece of code. If I give the input string as "this is my cat", this piece of code only displays 'cat'. whatever input i give, program … | |
I have a test.txt file that contains: 1/15/2011; somedescription ; Joe Blow ; $50 1/18/2011; somedescription ; John Doe ; $30 2/1/2011; somedescription; Joe Blow; $90 I want to be able to pull all rows of data associated with Joe Blow if a users selects Joe Blow from a combobox. … | |
Dear friends I am trying to convert an exe file to another file preferrably a BAT file or MSI file I have converted an file into exe but now i want to convert it into another file [CODE] Private Sub Decode(ByVal strFrom As String, ByVal strTo As String) Dim fileIn … | |
Learned about hook functions [URL="http://www.daniweb.com/software-development/python/threads/383164/1650339#post1650339"]for a thread[/URL] having problem with bad user input from the documentation. This is result which skips bad inputs. | |
How to convert excel file to pdf and upload in php I need a project to convert file in pdf file as excel and upload to webserver and see in pdf format how can i use linux server for pdf converter in linux and upload file | |
i tried to make a executable jar file.a program as follows [CODE]import java.io.*; class studentmarks { String name; double engmarks,phymarks,chemmarks; double tot,avg; public studentmarks(String s,double p,double e,double c) { name=s; engmarks=e; phymarks=p; chemmarks=c; } void compute() { tot=engmarks+phymarks+chemmarks; avg=tot/3; } void display() { System.out.println("nameis:"+name); System.out.println("totalis:"+tot); } }[/CODE] i saved it … ![]() | |
hi all, i have a problem with multiline json file that i wish to insert into an sql db. my problem arose as i went from one data set to two in the JSON file. the one data set was sucked from the json file to the sql db via … | |
I like to be able to modify the content of "pBuf" without modifying the content of the file. what would be the options, if that would be possible at all?. pBuf = (LPTSTR) MapViewOfFile(hMapFile, // handle to map object FILE_MAP_ALL_ACCESS, // read/write permission highDWordVal, lowDWordVal, BUF_SIZE1); //BUF_SIZE); | |
What is wrong with this code in IE, rest of the browsers its working fine, but when it comes to IE, it gives an error popup, Access is denied. Can some one help please. [CODE] var IE = false; if (navigator.appName == "Microsoft Internet Explorer"){IE = true} if (!IE){document.captureEvents(Event.MOUSEMOVE)} document.onmousemove … | |
I have a sample program that shows how to load data into an array but I need to change it to sort movie titles into columns for movie title, length,year, media type from a file named movies.dat It asks first from where to load...then loads in no particular order...then sorts … | |
Hello, Short Story: A file on my computer is disappearing when accessed by another user on the network. Long Story: I have a partition on my computer (E:) that I share the root of on my work network. In the root directory, there is (was) a MapPoint file (E:/mapfile.ptm). Sometimes, … | |
Good Day All I have a File Format Defined like this [QUOTE]9.0 4 1 SQLCHAR 0 100 "," 0 ExtraField "" 2 SQLCHAR 0 100 "," 1 Descr SQL_Latin1_General_CP1_CI_AS 3 SQLCHAR 0 100 "," 2 ABREV SQL_Latin1_General_CP1_CI_AS [/QUOTE] and i use it like this [CODE]BULK INSERT dbo.TBL_CMPS FROM 'C:\\UNISA_IMPORT\\Final_Import\\Campuses.csv' WITH … | |
Ok, I've asked something similar before, but I still have not been able to understand this... so I just want to have a txt file with math operations in it. Basically, it's just integers multiplies and added. Nothing else. 1*5+10 10+12 Each line can contain any multiplication or addition. The … | |
Hi, I want a Jquery based Ajax solution for Uploading, Cropping and Saving Images... I have been trying to find it for 3 4 days but I am only finding tutorials and solutions with postbacks when cropping images. Please help. thanks | |
Hi. I added a file called "sldata.txt" to my Silverlight solution (which I test in an ASP.NET site) in VS 2010. But when I try to access it using stream reader: StreamReader sr = new StreamReader("sldata.txt"); I get a SecurityException - File operation not permitted. Access to path 'chatdata.txt' is … | |
I am working on an assignment that requires me to read in a text file with text that looks like this [CODE]974 Headlight_LoBeam 6 12.87 5 3[/CODE] I am able to open the file successfully and just for testing purposes I am able to use getline() to get the first … | |
i have a program that reads in a file with shapes and numbers and tokenizes each line. after it tokenizes, it then calculates the shapes dimensions. what i need to do is make it so that this program reads in the file and stores every shape and its values into … | |
Hi! I've been wondering what is the file extension for an image file in Solaris. For Windows, I know it's .jpeg or .bmp or .png and etc. What do Solaris call their image file extensions then? I just know how to make a file by the use of this command: … | |
So this is my first post and I have only begun using python. One of my first assignments is to design a program which will count the most used words in the given text file. In my case we are using the Declaration of Independence. Here is what i have … | |
Hi.. I have a file with title output.dat.format of this file is as follows [CODE] 0 0.00E+00 0.00E+00 -2.00E-02 9.48E+02 1 0.00E+00 0.00E+00 -1.80E-02 9.48E+02 [/CODE] yes,Thats right.without any comma between.(just tab space) i need to create a file from this output.dat which has form similar to [CODE] 0,9.48E+02 0,9.48E+02 … | |
![]() | New user to Daniweb in the hope i can get some help cus my brain is fried. Im relitively a n00b at php but i can handle the basics, working with images is beyond me at the moment but im learning. I have the below code, which works. it uploads … ![]() |
i have few xml files in my project.i used "advanced installer" software to create exe setup files.i have included the xml files in PROJECT->BIN->RELEASE ->RESOURCES folder. after installing the project setup,when i run the project, i am able to view the xml file details ,but i cannot add new content … | |
So I want to make a text-based game that has different maps, displayed in ASCII art-style. I've been tinkering with fstream, and I wrote up this code: [CODE]#include <iostream> using namespace std; #include <fstream> int main() { ifstream indata; int i; int j; int k; char grid[9][9]; char letter; indata.open("grid.txt"); … | |
Hi, I have a code (below) that reads from a file and output the file content a fter inserting a tab and & in-between different elements into another file. [CODE]my $REPORT_FILE = 'report.txt'; $allRfile = 'AllidentifiedMetabs1.txt'; open(ALL,"<AllidentifiedMetabs1.txt") || die "can't open $allRfile $!"; my $line = <ALL>; ($ID,$name,$M2, $M3, $M4, … | |
A few days ago I found that I was no longer able to use application functions that access (browse) the system file directory...such as the OPEN buttons...the SAVE AS function....downloading or uploading files...etc. Any ideas? Windows Vista Home Premium - 64bit - SP2 | |
Hi, I am trying to read an input text file. And read the last letter only and check if it is an '+' or '*'. Here is the code I have written so far, if anyone can help me, I would be very greatful. [CODE] while(input>>lastChar) //put file contents into … | |
I've created a new class called BulletList2(linked list) using the built in dialog(File>New Class) which created a header file called bulletlist.h (in project folder>include) and a source file called bulletlist2.cpp(in project folder > src). header file [CODE=c++]#ifndef BULLETLIST2_H #define BULLETLIST2_H class BulletList2 { [...] } #endif // BULLETLIST2_H [/CODE] In … | |
0 down vote favorite share [fb] share [tw] share [in] i am working on a tiny tiny app that just uploads a file to the ftp server, i have reviewed my code but am quite unable to locate the problem, here is the code, [CODE=C]#include "stdafx.h" using namespace System; #include … |
The End.