6,015 Topics
![]() | |
so far the user can select a file that he want to open to be copied, is there a way of letting the user selecting multiple files to be copied to one file? i was thinking of looping around asking the user to add another file if the user wanted … | |
suppose i hv 1 txt file in which i hv declared 1 path name of particular file. i wan to recall that file by using pathname from thaT particular file.say for eg: input file(path.txt) having pathname as "C:\\gp442win32\\gnuplot\\binary\\gnuplot -persist","w".now i wan to call this file in c code in order … | |
I've been learning C/C++ and I'm currently doing an ATM project. It all works fine but I would like to improve it so when i quit the program and it will load the data used previously. currently I use a struct like this [CODE]struct database { int pin, sort, account, … | |
Hello I have created a file name connect.php and code of this file is as below [CODE]<?php $db_server = 'localhost'; $db_username = 'myweb_user'; $db_password = 'Aunhy125$%'; $db_table='main_table'; ?>[/CODE] To connect database I used to include_once() function. What may be the problem for this. Or what would be be best way … | |
I have one template page that I am using to show information about 8 different projects. some projects require .wav files on the page. So on those pages that require .wav's i want to show the sound file for them to play, and on those pages that dont require sound … | |
The problem that im facing is, the below code is working correctly and retrieve the pdf format files correctly and displaying it in the iframe. but it is only working in eclipse internal browser but not in firefox or internet explorer. what will be the reason for this.... Source code: … | |
Hi ALL, Am using the below vbs script to get the full path or absolute path, from the current directory path. The current directory path is "D:\JAMER\TestCases\Hammy\TC2_Enabled_both" The below script is used to get the full path of the current working directory to the file ScriptingFilePath.txt for later references, [code] … | |
Dear All, Have good day, I am trying to attatch file like yahoomail attatchement ,it means displaying name of file and Remove link after Button_click event fire. [CODE] protected void Page_Load(object sender, EventArgs e) { LinkButton1.Visible = false; label2.Visible = false; } [/CODE] [CODE] if (FileUpload1.HasFile) try { FileUpload1.SaveAs("e:\\parimal\\" + … | |
hi, i have to pieces of php code that i need to place into one but am unsure how to do it, firstly i have my peice of php to upload a few statistics: [CODE]<?php include 'mysqlconnect.php'; $db = mysql_select_db("upload_frenzy", $con); if (!$db) { die('Can not Connect to Database: ' … | |
What is worng with this code? This code shows... setw.obj : error LNK2005: _main already defined in filel.obj Debug/filel.exe : fatal error LNK1169: one or more multiply defined symbols found Error executing link.exe. filel.exe - 2 error(s), 0 warning(s) [CODE]#include <iostream> using std::cerr; using std::cout; using std::endl; #include <fstream> using … | |
Hi! I'm trying to decompress my GunZip files from the web using an WPF app, I get no errors, but then, when I open the files, I see randomly inserted "z" and my files aren't complete! Here is my code: [CODE] string file = sr.ReadLine().Replace(".gz", ""); SetInfo(Path.GetFileName(file)); int size = … | |
Problem stated: Write the function flip_lines(). Open the input and output files file using the parameters. Return true if both files can be opened and processed, false otherwise. If both files can be opened, write each successive line of output in reverse order. (In other words, switch line 1 and … | |
Could you please help me with this task? "Write a shell script which solve the task without the whereis command. The parameter ($1) is a file name. The script tells you which directories (maybe more than one) does the file exist in. (in the all-time PATH variable)" So far, i … | |
hello can any 1 hlp me for creating a secured exe file of an console application.means i hv created 1 program in c using dev c++ as compiler. now it is creating an exe file of the project in the same project directory. thats fine. nw along with that exe … ![]() | |
using dev c++ as compiler,bt coding the program in c.suppose i hv created 1 program in console application ,compiled it,run it, it works fine,on compiling & running it,. it produces the various supported assosciated with it. like makefile.win,gmon.out,project.exe,project.dev,main.o,main.c,now on seeing these files in notepad 1 can easily determined that program … | |
I have a CSV file with the following data 15278349,567892,3456,9742.30,CASH-WITHDRAWAL-200.00,DIRECT-DEBIT-200.00 64328975,632489,7562,98734.65,CHEQUE-DEPOSIT-100.00,CASH-DEPOSIT-424.54 etc... How would I print to screen the individual lines instead of just the top line?? Sam | |
[code] #include <stdio.h> #include <conio.h> #include <iomanip.h> #include <ctype.h> #include <string.h> #include <iostream.h> #define input "d:\\tcpp\\bin\\files\\input.txt" #define tempo "d:\\tcpp\\bin\\files\\tempo.txt" void menu(void) { cout << "Menu\n\n"; cout << "A - Add\n"; cout << "D - Delete\n"; cout << "I - Display\n"; cout << "E - Edit\n"; cout << "S - Search\n"; … | |
Hello, I am parsing a rebase file and using different subroutines from the BeginPerlBioinfo module. I have used the subroutines I think I need but I keep on getting the message"use of initialized value $site in concatenation or string <$fh>. [CODE]use strict; use warnings; use P4; # Declare and initialize … | |
I tried this class a couple of different ways and I had it print just memory location I think one way now I have an error that says: Traceback (most recent call last): File "F:\Python_Stuff\CSC143-901\Lexicon.py", line 83, in <module> source = Lexicon.OpenFile('word') TypeError: unbound method OpenFile() must be called with … | |
i've posted a thread about reading xml file from remote machine. i've used JDOM to read xml file.bcs as someone has told me,it is really easy and flexible.now i am using it normally in local machine.i've opened a socket connectio between server and client machine.then i use JDOM to read … | |
Im trying to make my program to either open or create a file if it does not exist, in "C://". [code] printf("Filename: "); scanf("%s",filename); FILE *fil; fil=fopen(filename,"a+");[/code] This code opens or creates a file in the same folder as the program. What i want is something like this: [code] printf("Filename: … | |
Hello, i'm new to this forum and this's my 1st time posting a code. my issue is that i have a code that should read from a file called ( ex: word or text), but it does not read the file it jUst gives me the error (could not open … | |
Hey everyone. My problem is that every [B].exe[/B] file that I download from [B]Windows Live SkyDrive [/B]doesn't come with its extension. It gets downloaded as a [B][U]"unknown file type"[/U][/B] file, and I just have to manualy rename it and add [B]".exe"[/B] everytime so it can be recognized. Although I keep … | |
Our image upload form always returns the error message, "Invalid file. Please click the 'Back' button on your browser and try again." Here are the basics. ==HTML FORM== [CODE=HTML] <form enctype=="multipart/form-data" action="phpscript.php" method="post"> <input type="file" name="uploadedfile[]"> <input type="file" name="uploadedfile[]"> <input type="file" name="uploadedfile[]"> <input type="submit" value="Submit" /> </form> [/CODE] ==PHP SCRIPT== … | |
Hi, I'm a newbie to programming in general. I want create two functions to read and write dat from one file to another file. Function read will read dat from file to buffer, and funtion write these data from buffer to another file. These functions work parallel, it means: Function … | |
I'm trying to parse xml file and convert all the unix timestamps in it to datetime... [QUOTE]<Sample> <TimeStamp>1291052077</TimeStamp> blah blah blah blah </Sample> <Sample> <TimeStamp>1291052077</TimeStamp> blah blah blah blah </Sample> </Content>[/QUOTE] [CODE]import fileinput file = raw_input("Enter file: ") file = open(file, "wb+") for line in fileinput.FileInput(file,inplace=1): if "TimeStamp" in line: … | |
Hello there! So I have an assignment where I am given a text file with customer information that I need to convert into a "label" format. The original file has caret (^) symbols marking the different lines to be organized. I have the input totally finished, the only thing I'm … | |
Hi, I created a data file, which seems to work perfectly, but as far as reading it into an array is where I get stuck. It should be 20 random #s 1 to 99 read into this array in a single line. In my data file, they are all on … | |
Hey all, I'm trying to write a batch file to parse a text file I have. Here's the pseudo code I'm trying to pull off: Example makefile.txt: [quote] text text text text text text text text text text text text text text text text text text text text text T1 … | |
I am working on reading data from a file into a struct array. The first line of the file tells how many users there are, then the following lines are the username, password, and a pincode.So the file is setup as follows: 15 mah123 happy 1234 bah123 moody 4567 ...etc … | |
First off, I know I have a few other errors besides the sorting code. I am working on figuring those out as well. I need to sort the names in the file alphabetically. I did put a code which I thought would work, but doesn't. Lines 39 through 50. [CODE] … | |
I have an application that allows the user to open a file by clicking file -> open. The thing I'm trying to do is read the text file...but I don't know how to assign the user defined text file that the user opened to an object. I guess because I … | |
I have a website that allows people to come an upload images. When that person uploads an image it renames it according to who is uploading it. So every time that person logs on and changes his image, it will overwrite the old image. That person will only have one … | |
Hi I want to download a zip file (xml file in zip - size more than 50mb) which is in another website to my server using PHP scripting. That particular file is updating daily in that site, so i need it to download and use it daily basis. any help … | |
Hello i want to create a file crawler that lists all files in hard disk using directory functions in C i have been able to list files in one directory only and haven't been able to crawl through other directories and sub-directories this is what i have so far. [CODE] … | |
Hi all, I operate a web directory and made it so that other websites can install it and pull the categories and links from my database (an effortless web directory). I recently discovered I could install it in my FaceBook account too very easily. All that someone else needs to … | |
hi, can someone help me started with how to write a program that remove the comments from an input cpp file? I am not even sure how to declare the function, like what would be the parameters? and if I use ifstream file; file.open("text.cpp") will the program treat that as … | |
I use Visual studio 2008 I use MySQL 5.1 I have created een database (test) table (table1 ) with field (Images) Data Type mediumblob size The maximum length of mediumblob is [COLOR="Red"]16777215[/COLOR] (2^24 - 1) characters I want to Check file size before save in MySQL table1. [COLOR="Green"]I want to … | |
I need to write a code in which i want to create each file for every iteration of a loop add data into the file. also the filename should change every time. for example: familyname1_parts.txt for 1 iteration for second familyname2.parts.txt for 2 iteration and so on.. [CODE]try { out … | |
Hi all, So I have reached a kind of impasse on my current project. I'm trying to make a program that can function like a phone book, loading information from a file into a binary search tree and performing operations on said information. The issue I'm having appears to be … | |
Hi I'm Indrajeet. I was writing a program in VC++ 2010 Express for file manipulation, and after finally getting all the syntax errors out,my code looks lie this: [CODE]/********************************************************************* This is a program for file manipulation in VC++ Created by Indrajeet Roy *********************************************************************/ #include<conio.h> #include<stdio.h> #include<stdlib.h> //Protoype of the functions … | |
Hi, I need to be able to upload a photo from a datagridview. I am using the C# ready database (I don't know what excatly it is called. But I have made a login page using login control and created a few users). I have added a new table or … | |
I have looked this up on internet and no answer yet!!! I have a paged with a loginView which has a button and a fileupload control in it. When I double click on the button to add some commands I can see that the program can see the button and … | |
Hi I am trying to create a program in java which will scan for words within a text file. The program will scan the list containing a bunch of words in every line some words may be repeated. The program should scan the text file when I input a word … | |
i am doing a work that use srt(subtitle file) what i support to do is in command promt user can type: video title -u 3000 subtitle name after that the subtitle will appear 3 seconds after the actor speaks this is wat i have so far: [CODE]#include <stdio.h> #include <ctype.h> … | |
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? | |
[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 … | |
[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 … |
The End.