6,015 Topics
![]() | |
Hi My one applicaton using sqlldr utility to load data in database from flat text file. Now there are change in table name. I open this .ctl file in text pad and made changes but its not working. I am providing flat file name and other file name as a … | |
Hello,everyone!I am very new to posting so please bear with me. I had a notebook pc with all of our itunes music downloaded to it. No I did not back it up. My hard drive fried yesterday. How can I upload the music from my son's ipod and my ipad … | |
hi i have to read tif File using java file has 3 pages and take first two page of that file and create new tif file with different name can u suggest me how should i start | |
Hi I have 2 pcs running Win 7 and connected with a switch. I also have another pc with XP (connected through a router to the switch mentioned). File sharing used to work fine, until not long ago when i tried sharing another drive on the network (from a Win … | |
hi all.... i want to create a menu like the one in the image attached...... can you guys please tell me what is the name of that particular style of file open diaog.... i'm sure the code for this is available easily.... but i'm just not able to do a … | |
So here is cliff notes of my assignment: -Use Inheritence -Person(lname, fname, address) inherited by employee(rate, hours) What I would like to do: -Find how long my arrays have to be(depends on file length) -open file -go to function retrieve lastname from file -go to another function retrieve firstname ...etc … | |
Hi guys, ran into a small problem, i can read & write anything i want to a text file as well as append to the end of the line but I cant seem to figure out how to edit a specific line. Lets say in the text file i have: … | |
Hello everyone, I wrote a c program in order to write 5 students records (name, ID and average) to a file. Now the difficult step is to firstly to find the highest average among students. Have anyone any clue how I can do this? Thank you | |
Good day. How can I get the path from a Resource File(Resources.resx) just like a file path in Windows in VB.NET? Example, I imported a picture to my resource file, and want to use the picture while my form is loading, and want to use the path from Resources.resx file. … | |
My Windows 2000 computer detected a severe virus and I was afraid that my entire computer would crash so I panicked and stupidly deleted the entire administrative user account without thinking about my files nor backing them up. I was more concerned with my installed expensive software being affected. Now … | |
A practice exercise requires the creation of a text file with 4 lines of info for cars, VIN, model, manufacturer, and year repeated over and over for different vehicles. This I do with StreamWriter and have a simple multiline text file as follows: 111111 Echo Toyota 2005 222222 Accord Honda … | |
Dear all, I have a .exe file of a hydrology model(in FORTRAN) and I need to supply an input file to it using < redirection operator and later store results in a file.It is required to do it through Java platform.Eagerly waiting for relevant replies. | |
Hello everyone, I have a text file which has some values structured as below -------------------------------------- 1 2 3 4 -------------------------------------- Then i made a PHP file which can receive checkbox values (always receive 2,3 & 4) from another HTML file as below [CODE]if($_POST['Button']){ $check = $_POST['$boxname']; foreach($check as $chk ){ … | |
Hi, im fairly new to Java, learning as I go on. I have gotten to the stage that I need to read specific lines from a text file that has already been created. Lets say my text document has 30 lines, and I only want to read what is in … | |
Hi Need help reading data from a file after a specific point. I need to read the data from this file into a richtextbox after the [HRData] header. This is the contents of the file I'm reading from. [CODE][Params] Version=106 Monitor=34 SMode=111111100 Date=20100926 StartTime=08:45:59.0 Length=00:33:36.6 Interval=1 Upper1=0 Lower1=0 Upper2=0 Lower2=0 … | |
I have develop an utility for my company in which there is two file format If i browse file which is eg->ACE.T004 It gives following error [B]Error:Index and Length must refer to the location within the string Parameter name : Length[/B] Following is my code [code] using System; using System.Collections.Generic; … | |
I thought this program was as good as done, turns out, it's more broken than I thought! Right now I'm in a panic, since it's due tomorrow, and I have a few big problems with it. Problem 1: I need to either open an existing file, or a new one … | |
Hi i am wondering could anyone help me understand a file upload code. I am currently working on a website like mediafire, raipidshare and the rest of them. I have taken down codes of all sorts and some i got to work but had errors. I don't understand as i … ![]() | |
So I've only been programming for a few weeks, and I thought that I'd learn how to program by converting a rather complicated baseball board game to a program. I'm writing a preliminary program that stores player information from a card into a random access file. My Struct holds the … | |
ok so i have this program here i had to finish, and it was for input and output files, i wrote everything, and even wrote the data.in and data.out files but when i run it i get nothing in return. do the files have to be in the ".in" format … | |
Hello I am currently attempting to write the contents of a .hrm file into a datagridview and place each piece of data into its required column. This is the code I have at the moment which is currently just extracting some data from the .hrm file and placing it in … | |
Hello I am currently trying to read specific data from a .hrm file and then display it within a form in c#. For example I want to read the date data from this file and then display it on the form. All I have managed to do is read in … | |
This is the code that I have written in C# which shows the contains in the sample.log file. [CODE] class FileRead { public void ReadData() { FileStream fs = new FileStream("sample.log", FileMode.Open, FileAccess.Read); StreamReader sr = new StreamReader(fs); sr.BaseStream.Seek(0, SeekOrigin.Begin); string str = sr.ReadLine(); while (str != null) { Console.WriteLine("{0}", … | |
Hello, I have a script written the unix shell language (NOT in bash or any other shell, in sh) that prints the mount point of a given usb (i.e, it takes the path of a usb (such as /dev/sdb1) as an argument). Here it is: [CODE] #!/bin/sh # usage: get_mount … | |
Hi all. I am trying to read items from a text file whose name is input by the user and also output the receipt to a text file whose name is input by user. I got stock for about 3 hours. Could you guys help? Thank You. [CODE] #include <iostream> … | |
I can upload one file and would like to allow for 4 - 6 file uploads. I did not write the upload code and all I need is to add more uploads and I am not sure how to alter the code. # maximum file size allowed (kilo bytes) $max … | |
Hello, I am trying to save elements into a file and it is not working. If the file is there, the new elements need to override everything in the file, pretty much clear it out and write to the file. If the file is not there, it just writes the … | |
Team, I have a shell script which will b run in cron job. On an adhoc basis. The script needs to be run such that the moment it goes to the particular directory. It should adapt to its ownership. But the script which i had shared below is run by … | |
Can anyone fix my problem? I'm sure my getDate function algorithm was right, but it still wrong.. here is the code: [code=c] #include<stdio.h> #include<string.h> #include<stdlib.h> typedef struct{int day,month,year;}Date; typedef struct{ char name[31],gender; Date dob; }Student; void getString(FILE* x,char* y); Date getDate(FILE* x); char readChar(FILE *x); int main(){ Student pupil[100]; int … | |
I want to create a batch file that opens an executable(.exe) file . Actually when we open that .exe file it asks us select or browse a file then we need to select the file. After selecting the file we need to remove the file in the second textbox by … | |
[CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace FriendBirthdayReminder { class Program { static void Main(string[] args) { FileStream file = new FileStream("FriendsData.txt", FileMode.Open, FileAccess.Read); StreamReader reader = new StreamReader(file); const char DEMLIM = ','; const int END = 999; int count = 0,num,size; string name,recordIn; string[] … | |
Hi I have a problem that I'm not sure how to resolve. My issue is that I have to setup a page that allows coworkers at my office to be able to upload meeting documents and such. They should be able to upload them themselves and the user viewing the … | |
i am a beginner .can anyone just give me a code to make a txt file using c code,that will create txt file with name same as the value of int variable.. consider like if int x=10,then file name created will be 10.text if x is assigned 45 then it … | |
Create a file that contains your favorite movie quote. Use a text editor such as Notepad and save the file as Quote.txt. Copy the file contents and paste them into a word-processing program such as Word. Save the file as Quote.doc. Write an application that displays the sizes of the … | |
Hi, i have a text file containing data like temperatures, voltage... this file contains more than 2000 rows What i want is to import this text file with Excel using Java. because i don't to open excel then click on import then choose the file...etc If someone know a tutorial … | |
Hi Ok i am makeing a program and want it to check if there is an update availible by checking if a txt file with the version has a difrent number. I have been looking around and found absolutly no help for this problem. The text file would be at … | |
#include <fstream> #include <cctype> #include <iostream> #include <string> const int num=1024; using namespace std; int main(){ ifstream file; string s; int i=0; file.open("words1.txt"); while(getline(file,s)){ for(int i=0; i< s.length(); i++){ cout << s[i];//prints out the text file just fine. "a dog." cout << s[0]; /*prints out random stuff. <---my problem. All … | |
Hi All, Need help in uploading multiple files and renaming them. I want the file to rename to corrensponding text file while uploading. Below is the messy code on which I'm working. Regards BW HTML code [ICODE] <html> <head> <title>Multi</title> </head> <body bgcolor="#c2c2c2"> <form method=post action=upload.php enctype='multipart/form-data'><table border='1' width='400' cellspacing='0' … | |
Hi Guys, I need help for in storing data from PHP from array in mysql. I'm very new to PHP/Mysql and have started learing it just few weeks back. I'm trying to build a website for myself. I'm having tough time trying to insert the data from Form in mysql. … | |
#include <iostream> #include <fstream> #include <string> #include <cctype> using namespace std; const int num=1000; int main(int argc, char *argv[]){ if (argc == 2){ ifstream file; file.open(argv[1]); } else cout << "You typed only one file" << endl; ifstream file; file.open(argv[1]); string space; char word; int i=0; int w=0; int s=0; … | |
Hi, I would like to know if its possible to edit a properties file after the project is deployed. I tried editing the values in the properties file using a classloader. [CODE] ClassLoader classLoader = this.getClass().getClassLoader(); prop.load(classLoader.getResourceAsStream("test.properties"));[/CODE] It reads the values properly but I couldn't write it back to the … | |
Hi there! got some problems. I've developing a multiplayer game there's a class called userServer, that use a file to handle all incoming information. but I can't write to the file for some reasons. here's the code: [CODE] /** * @(#)userServer.java * * * @author * @version 1.00 2011/2/16 */ … | |
hello everyone, got issue regarding reading duplicate records in a text file... i need to read the file and look for any duplicates data/keys in the text file and write them to another file (all the duplicates records)... how can i do that, in looping...:-/ any help...:) thanks! | |
I want to add a file which will come database that is file path. I am using the following code to send, Mail is being sent with out attachment. [code] $name = "Abhi"; $email = "abhi10kumar@gmail.com"; $to = "$name <$email>"; $from = "Rahul Kumar"; $subject = "Here is your attachment"; … | |
Most examples of the select() function use a 0 to 'max file descriptor value' approach: [CODE] fd_set master_fd_set; FD_ZERO(&master_fd_set); fd_set temp_fd_set; FD_ZERO(&temp_fd_set); int max_fd = the_max_file_descriptor_value_of_descriptors_interested_in; ... temp_fd_set = master_fd_set; ::select(max_fd, &temp_fd_set, NULL, NULL, NULL); for (int i = 0; i <= max_fd; ++i) { if (FD_ISSET(i, &temp_fd_set)) { // … | |
hello all. i've bee learning php for the last couple of weeks while designing a site but i am now frequently running into situations where i need to use javascript. i have a page where i want a user to browse for a pic with a file field and i … | |
I'm having trouble reading in values from a file. I know how to get all of the values in the file, but I only need some of them. This is my code (a snippet) so far. [CODE] ifstream myStream( file ); // file is the file name . while (true) … | |
Hi I am preapring a website form where the resume needed to be uploaded and it should send an email to me along with upload as attachment. Please let me know the error in this below forms: == HTML Form: [CODE]<form method="post" name="mailform" action="emailnew.php"> <table width="200" border="0" cellspacing="0"> <tr> <td … ![]() | |
Hi, I was hoping to create an application where the user can open a file from their hard drive (using the askopenfile dialogue from tkFileDialog) and it would display information such as file name / size. I managed to get everything working correctly except for displaying the information. I tried … | |
I am running a batch file using msxsl to take an input xml file like below <ns1:invoicedata> <data1>1</data1> <data2>2</data2> </ns1:invoicedata> I need to copy this original output and replace the values with the input file values <ns2:invoiceoutput> <data3>3</data3> <data4>4</data4> <data5>5</data5> </ns2:invoiceoutput> so that it ends up with the following data … |
The End.