6,015 Topics

Member Avatar for
Member Avatar for tottletj

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 …

Member Avatar for Gribouillis
1
105
Member Avatar for vedro-compota

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 …

Member Avatar for vedro-compota
0
400
Member Avatar for javaperson1

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 …

Member Avatar for javaAddict
0
153
Member Avatar for k9shark

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 …

Member Avatar for k9shark
0
137
Member Avatar for juan92

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 …

Member Avatar for codeorder
0
186
Member Avatar for aznlitomik3

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 …

Member Avatar for SgtMe
0
129
Member Avatar for merse

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 …

Member Avatar for scrappedcola
0
336
Member Avatar for merse

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 …

Member Avatar for peter_budo
-1
93
Member Avatar for Tiny_trixer

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 …

Member Avatar for drkybelk
0
139
Member Avatar for bufospro

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 , …

Member Avatar for Ancient Dragon
0
81
Member Avatar for Rally VW

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 …

Member Avatar for Eric Cute
0
201
Member Avatar for biju127

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 …

Member Avatar for biju127
0
217
Member Avatar for newbyE

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? …

Member Avatar for newbyE
0
7K
Member Avatar for tyczj

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 …

Member Avatar for hoangnn90
0
6K
Member Avatar for mikemoser

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 …

Member Avatar for mikemoser
0
537
Member Avatar for fahadyousaf

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 …

Member Avatar for kramerd
0
239
Member Avatar for ryoonnet

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 = …

0
88
Member Avatar for chris7197

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 …

0
49
Member Avatar for aznlitomik3

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 …

Member Avatar for Ancient Dragon
0
145
Member Avatar for gedas

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 …

Member Avatar for gedas
0
97
Member Avatar for chuck577

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 …

Member Avatar for frenzy50187
0
1K
Member Avatar for beatenbob

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 …

Member Avatar for beatenbob
0
464
Member Avatar for kanchan arak

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.

Member Avatar for kanchan arak
0
148
Member Avatar for claudiordgz

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 …

Member Avatar for claudiordgz
0
106
Member Avatar for globberbob

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 …

Member Avatar for globberbob
0
137
Member Avatar for parallel91

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 …

Member Avatar for king_koder
0
283
Member Avatar for farehan

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); …

Member Avatar for simongh2
0
127
Member Avatar for kezkez

if i have a text file with data: test, 1, 2 again, 3, 4 Can someone give me an idea how to start puting each line into an object ? ObjectName o = new ObjectName(String s1, String s2, String s3); [CODE] class Action implements ActionListener { public void actionPerformed (ActionEvent …

Member Avatar for JamesCherrill
0
155
Member Avatar for BlueZephyr

I have a list of things of things I need my code to do but I don't know where to begin. I need to: -Read the first line of a file which gives the number of grades in a set. -Transfer everything in a input file to and output file …

Member Avatar for tkud
0
191
Member Avatar for bear38

About a week ago, my laptop just froze completely. Reboot successfully but froze again after a minute or so during startup (desktop screen). But whenever I click at the taskbar for connecting to WLAN or volume control it would freeze right away. Tried again many times and the same thing …

Member Avatar for crunchie
0
606
Member Avatar for LianaN

Hi! I've decided to open a new thread for discussing the problem with uploading a file to a SUB-FOLDER at the FTP Server. So, I'm using Apache Commons library and I can upload my file to the Home Directory of the FTP server. However, if I want to upload it …

Member Avatar for LianaN
0
1K
Member Avatar for Lanor

Hi...I am not able to input text file correctly as desired...... data.txt -------- Jim A James A+ Smith Cathy D Dazy Peter C I am suppose to input the above file and fill the above data in two seperate arrays. For the second column, I am suppose fill NULL value …

Member Avatar for WaltP
0
100
Member Avatar for ekkanh

Hi, how do I write a list to a file on mac os x? I have tried everything..... file = open('test.txt', 'w') mylist = ["rocks","box"] file.write("This doesnt work either") file.write(str(mylist))

Member Avatar for woooee
0
63
Member Avatar for HBK_100

I have the following in the txt file [CODE] 1 Single.Standard Standard Empty ......... ........ 70 2 Single Standard Empty ........ ....... 70 [/CODE] I ahve the code below buts its not deleting the selected id [CODE] while(!file.eof()) { file >> roomnumber >> category >> type >> status >> datein …

Member Avatar for HBK_100
0
103
Member Avatar for rfencl

Hi, I have a jsp web application running in Tomcat 6 that uses a set of 3rd party jars. One of the jars is attempting to load a log4j property file by using a relative path. ( \folder\.properties) I have the property file but I need to know where to …

0
115
Member Avatar for Trle94

Hey every one... im trying to read file path from .txt I can read it but there is one big hole in which i stepped.. So if you could help me out?? lets see the code looks like this: [CODE]Imports System.IO Public Class Form1 Function INIparse(ByVal TextStringToProcess As String, Optional …

Member Avatar for Trle94
0
155
Member Avatar for ryoonnet

Hi, I want to know if we can use javascript for file encryption (not text). If yes then how? Any help appreciated.

Member Avatar for Taywin
0
109
Member Avatar for LianaN

Hi! Could someone please help me to solve one more problem. To read the data (ArrayList) from file, I'm using the following code, which assumes that columns are separated with ",". It works perfectly: [CODE] public static List<UserDataRow> readData() { List<UserDataRow> listofusers = new ArrayList<UserDataRow>(); FileInputStream fstream = null; try …

Member Avatar for LianaN
1
6K
Member Avatar for henryford

Am I able to read or write to a file with this code or what is stumping me. The following is what I am suppose to do. Calculate each employee’s pay, and write it out to a sequential file. Be sure to include file I/O error handling logic. Include only …

Member Avatar for slate
0
174
Member Avatar for WolfShield

Hello everyone, I was wondering, if I wanted to make my code a little smaller in one file, is it possible for me to import another file I made? E.G. (Very simple e.g. just for helping understand what I mean) Let's say I made a program that the user types …

Member Avatar for TrustyTony
0
1K
Member Avatar for |hex

:) my project consists of me making my own two pass assembler for my systems programming class. i have finished pass 1, my code complies and everything, but, when i try to make it read an input file, it states that it is never found. i dont know what to …

Member Avatar for |hex
0
145
Member Avatar for adaniel058

I can not figure out why my code is reading in data to my vector in funny ways. I have added the input file and necesary class to test. It seems to be skipping values in the input file and also adding things to seperate places in the vector instead …

Member Avatar for kramerd
0
235
Member Avatar for feoperro

Hi, I have my project folder in www\project - for some reason, some of the images don't work and some do. All pictures are in the same path (project root) but some display a red cross and some display perfectly fine. As far as I know - theres no way …

Member Avatar for feoperro
0
167
Member Avatar for haxtor21

Hello Daniweb. I am trying to make an application for a ATM machine (class homework). This is the schematic that I followed [url]http://www.screencast.com/users/haxtor21/folders/Jing/media/303e583a-8f90-46f3-8ed1-a35dde2200bb[/url] My issue is that I'm trying to access a text file and search for a account ID. After the account ID i am doing a nextDouble and …

Member Avatar for haxtor21
0
194
Member Avatar for kapilsolanki84

if u want to create a file using a variable by taking its value from input data file,then your code should be in this pattern. [CODE]char ch[10];/*say input.dat contains data as 'output'*/ FILE*fp,*ft; fp=fopen("input.dat","r");/*fp is input file pointer*/ if(fp==NULL) { puts("error") } while(fscanf(fp,"%s",&ch)!=EOF); printf("%s",ch); sscanf or sprintf(ch,"%s.txt",ch); ft=fopen(ch,"w"); if(ft==NULL) { …

Member Avatar for WaltP
-1
143
Member Avatar for saadi06

HI Can anyone tell me that how to configure php.ini For $_FILES['name']['type'] I am trying to upload a flv video and it is uploading successfully but it is not showing me the type. But if i upload a .mp4 extension file it is giving me the type also and can …

Member Avatar for diafol
0
57
Member Avatar for saadi06

//this code is for upload,i have successfully uploaded my file in to uploads folder please can anyone tell me how can i get the image from my folder if(isset($_REQUEST["upload"])) { $name=$_FILES['uploadedfile']['name']; $type=$_FILES['uploadedfile']['type']; $size=$_FILES['uploadedfile']['size']; $check=$_FILES['uploadedfile']['name']; $uname=str_replace(" ","_",$name); $tmp_name=$_FILES['uploadedfile']['tmp_name']; $target_path = "uploads/"; $target_path = $target_path . basename( $uname); if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { echo …

Member Avatar for naveedkhalid
0
154
Member Avatar for Bri426

I'm having so much trouble with this assignment, and I was wondering if anyone would be able to help me out. Here is the assignment: This program uses the file "cities.txt", which contains over 136,000 location names in the United States. Each line of the file contains a place name …

Member Avatar for SasseMan
0
391
Member Avatar for Honkey_Magoo

I have a perlScript form that asks for a file e.g. [CODE] <%@LANGUAGE='PerlScript'%> <% $Response->Write(" <html> <head> </head> <body> <form action='editRST.asp' enctype='multipart/form-data' method='post'> <p> Please specify a file:<br> <input type='file' name='file' size='35'> </p> <div> <input type='submit' value='Send'> </div> </form> </body> </html> "); %> [/CODE] and another to gather the data …

0
56
Member Avatar for Tankadin

hi folks the program I am attempting to do here, even though its horrible so far, is one that reads in a file containing: [code] Johnson 85 83 77 91 76 Aniston 80 90 95 93 48 Cooper 78 81 11 90 73 Gupta 92 83 30 69 87 Blair …

Member Avatar for kramerd
0
180

The End.