6,015 Topics
![]() | |
I have this program to read in a text file and store each word in a Binary Search Tree and keep track of the frequency of this number in the file. My outputFile should read like: 32 a 54 and 4 hello 8 will 9 would I have the program … | |
I am working on a program that reads in a text file as a command line argument, then goes through the file, breaking the file down into strings, special symbols (such as .:!;?) and integers. The program stores each type into its own collection. I have all the collection methods … | |
can somebody help me this code cannot run. I can't find the error... [code=c] #include <stdio.h> #include <conio.h> #include <ctype.h> #include<stdlib.h> //use for fflush and exit(0) #include<string.h> //use for strcpy void calculate(); void insert(); void exit(); #define TRUE 1 void calculate_and_sort(int end_of_file); int input1; char ch; typedef struct{ int num; … | |
Guys, right now i'm trying to develop a php file that can scan a virus in a server. The file and the virus definition i kept in a separate folder I named it 'virus'. I mean my website is not in a same folder as the virus scanner file. After … | |
Hi, I'm learning intro to c++. My question is, how do I input values that come from a different text file so that the program uses those values for calculations? Basically, it gives me a list of numbers and tells me what the numbers are for... and then I have … | |
Hello! I'm new to C programming and I have a question. I'm trying to write a C program that that can: Open a file (the file name is unknown) located within the same directory as the executable file, search through the contents of the file for a particular keyword (for … | |
I am working on a project that requires the main system, EmployeeSystem to be able to open a file with JFileChooser, and then write to that file, run a payroll system on it, and search it for a particular employee using a directory system. I am struggling right now to … | |
hi i want to aske if there is away to upload / download files to / from sql databse using asp.net with C# i need to do that using using gridview i have view my data inside asp.net gridview i want to download my uploaded file in db when i … | |
hello guyz,,i have confusion anyway,, i have a textfiles (products.txt & cart.txt): "products.txt" inside this text file is Alcohol $12.7 12 Shirt $45.00 34 if i run it to a java file it would be like this actually i already know how to read the file,,and when i output it: … | |
I am trying to open a file in loop and print the data which my teacher request. however, there is blank in the out put file. and , how to indent the body of loop?? there is my code, please someone tell me what i did wrong!! thanks~` there is … | |
please tell me algorithm or code for following character sorting (Ascending) problem. For example Text file contains following data: 001, PSTR, abcdef, h.no.222 abcdefghik lmnopq rstuv, student, A-level 002, MKTO, abcdef, house. 2 abcdefghik lmnopq rstuv, student, rtv 003, LORR, abcdef, h.number.210 abcdefghik lmnopq rstuv, student, O-level 005, ASMP, abcdef, … | |
Hello, I'm trying to simply copy the text from one .txt and create a new one and copying it to a new txt. I'm actually adding more text to that new file but that's not the part I'm having problems with. I could go through the entire .txt with this … | |
Hello, all: I have this single-file upload script which works great (it's a bit log cause it creates thumbs, unique ID's,e tc), but I am trying to modify it to make it do MULTIPLE files. I figured best way was to apply a foreach loop to it, but havent been … | |
hi i want to aske if there is away to upload / download files to / from sql databse using asp.net with C# i need to do that using using gridview i have view my data inside asp.net gridview i want to download my uploaded file in db when i … | |
Okay, I'm doing some experimenting on file I/O using a user/password access program I'm writing. My problem right now is while the program will append the new user and password, it does so whether or not that user name exists already. I'm not worried about duplicate passwords, but I don't … | |
Is it possible to retrieve the original "File Created" date from a file when the date has been changed due to copying from one system to another? I understand there are ways of preserving the dates if steps are taken [i]before[/i] the copying, but is there anything that can be … | |
Hi everyone, I am trying to convert a textfile eventually to a pdf file with a visualization of information in the text file. I use Java to convert the text file to an xml file, and fop to convert the xml together with an xsl file to a pdf containing … | |
I am trying to read the data (integers) from a file to a larger unsorted array and then move specific elements from that array to specific sub arrays. I can write the data from the file to the unsorted array fine but I get the wrong integers when trying to … | |
[CODE]#include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; int main () { ifstream fin("program4.txt"); ofstream fout("output4.txt"); string lastName; string firstName; string fournumbers; if(fin.fail()) { cerr << "Unable to open input file\n"; exit(2); } if(fout.fail()) { cerr << "Unable to open output file\n"; exit(3); } while (fin >> … | |
Hi! As you can see by my name I'm new to programming. I have a program that only works partially. It consists of two functions. One function creates a text file and reads it and the other one creates a binary file and reads it. The text file part works … | |
Iam new to perl. This is my problem. I have calculated the distance using the formula my $distance = sqrt(($x2 - $x1)**2 + ($y2 - $y1)**2 + ($z2 - $z1)**2); and the value of $distance looks like this: 3.72851967944384 5.83210433720111 7.12922562414741 10.2322964186931 11.2073015931579 11.882666956538 14.4465118281196 16.0581479006765 17.2278339903773 Now I have … | |
Hi, and here i am throwing a "not the exact version" of my problem, but if this is been solved, my problem is done. Lets suppose i am building a application in c++ that will simply display the content of a text file. I absolutely can make the app take … | |
Hello, my question is how can I read decimal from txt file? For Example expression "2.0 1.3 +" - postfix to calculate it. The one that I have right now work for integers but when it starts reading it chops of the decimal part. I can figure out what i … | |
I am writing a code to read in a mips file to look for data dependencys, but when i read the file in i get all kinds of goofy stuff coming in as well, thanks in advance for any help. [code=java] import java.io.*; import java.util.*; public class hw { static … | |
Hello everyone, I am having a really difficult time getting this program off of the ground. I need to use a while loop to read data from a file and then read tonnage numbers corresponding to names read in from that file. The assignment looks something like this: [I]After watching … | |
Hi guys I need some help from you guys... im facing a new problem with php download script when im downloading a application file, it suddenly stops and showing completed but application is not installing. the actual size is 9Mb....but it downloads sometimes 5.2Mb,6Mb,6.8,7.4Mb....it's not constantly downloading at certain size … | |
Hello, I am trying to open a txt file from a link in a gridview. this is code i have, [code] <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" EmptyDataText="No records found matching your criteria" Font-Bold="true"> <Columns> <asp:BoundField DataField="file_name" HeaderText="File Name"/> <asp:TemplateField HeaderText="Open"> <ItemTemplate> <asp:HyperLink ID="Open" NavigateUrl='<%# Eval("file_name") %>' Text='<%# Eval("file_name") %>' runat="server" /> … | |
hello,I would like to create a class for basic file operations-just reading and writing a line.There seems no error in my program but it doesn't output anything.I think there is a problem with the functions for reading and writing.Please help... [code=C++] #ifndef HANDLER_H_ #define HANDLER_H_ #include <iostream> #include <fstream> #include … | |
Hi all I am newbie to VB.I want to append text file data to an already existing excel file. Following is the Text file:: [code] BARCODE|TITLE|PRICE|CUSTOMER_FIRST_NAME|CUSTOMER_LAST_NAME|CITY|STATE|ZIP|PURCHASE DATE 111111868167|Dead North Friday Night OCT 10th |18.5|Amber|Follensbee|Windsor|VT|05089|08/07/08 11:30am 111111868177|Dead North Friday Night OCT 10th |18.5|Amber|Follensbee|Windsor|VT|05089|08/07/08 11:30am 111111868187|Dead North Friday Night OCT 10th |18.5|Amber|Follensbee|Windsor|VT|05089|08/07/08 … | |
I have this file named Blocks on my hard drive that only appeared after a full system restore. It takes up a lot of space and I was wondering if I can get rid of it. | |
Hi, Im new to the Forum, and I could use a bit of help. I want to code a application that rights meals to a file and generates a weekly menu randomly. I dont have a problem with writing and reading to the file, but I do have a problem … | |
Can someone please tell me why I'm receiving these error messages when attempting to take on customer data from a flat file: - Error 1 Name 'OpenFileDialog1' is not declared. - Error 5 Overload resolution failed because no accessible 'Split' can be called without a narrowing conversion: 'Public Function Split(separator() … | |
Something off the box: I got a log file of the pattern say like this : 19876 Exception happened at heylog.php. 19878 Argument missing I need a shell script / awk which should get the file, read the line and should get me the line number displayed with that message … | |
Basically, I was wondering how I could read a text file (Transactions.txt) which will have one number per line(ex. 2000 on one line, 25 on another). This number is either a deposit or a withdrawal to a checking account. The program should read the Transactions.txt , then write the deposits … | |
The declaration of the type is: [code]type TMediaLibrary = record Title:string[30]; TrackNo:integer; Artist:string[30]; Album:string[30]; Year:string[4]; Genre:string[30]; Comment:String[30]; Directory:string; end; var SongInfo: TMediaLibrary;[/code] and the file implementation of it is here: [code]procedure TForm1.Button1Click(Sender: TObject); var SongFile:string; MediaLibrary: file of TMediaLibrary; <<<Error is here begin . . . . AssignFile(MediaLibrary, 'C:\Program Files\toMedia … | |
I am reading Comma delimited Large .txt files(About 50 Mb). Currently I am using the method below to step through the lines in the file. I have one other application that Read the exact same .txt file that I do. That application will reach the end of the textFile in … | |
Can anyone fix my code especially in the updateRecord function because instead of updating,data remains the same. [CODE]int newRecord( FILE *fPtr ) { /* create clientData with default information */ struct clientData client = { 0, "", "", 0.0 }; int accountNum; /* account number */ /* obtain number of … | |
When I excute my program and open up the text file, it only reads me the 1234 then junk below it. I have no clue what do. Anything is welcome. Below is my .cpp file my text file looks something like this 1234 jack hammer 75.00 .45 10 5678 Daffy … | |
Hello everyone...i need help with text file in c++,i know that we can append like ios::app and into a text file.....i need help in inserting a particular string to a particular line in a text file.....is that possible....So far i only knw tht it will append at the bottom of … | |
i currently working on web based ftp system where this system will upload and retrieve file from ftp server in red hat linux 9.0. here is the php cording for the upload file:- 1.upload.html [code=php] <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <form action="upload.php" method="post" enctype="multipart/form-data" name="form1" … | |
I'm working on a bit of homework and I don't need someone to do it for me but to help out with this portion. The rest of it is pretty easy to manage since I already have it mostly done but right now I can't figure out how to get … | |
Hi, I m new in this field. Actually I face a problem, I call a php file from a html file using javascript. I declare a variable in php file,I want to use this variable in the same html file after execution of php file.Please help. | |
I'm trying to upload .js files onto my sever. This is the code: [CODE]<html> <head> <title>Add Ubiquity Command</title> </head> <body> <form action="add_ubiquity_cmd.php" method="post" enctype="multipart/form-data"> Name: <input type="text" name="name" /><br /> Description: <textarea rows="8" cols="30" name="description"></textarea><br /> JS File: <input type="file" name="file"><br /> <input type="submit" value="Add Command" /><br/> </form> <?php if(isset($_POST["name"])) … | |
My output looks like this "T h i s m y o u t p u t" and I want it to look like this "This is my output". Any suggestions? I guess what Im asking is how do you take words from a file and put it into an … | |
I am pretty new to programming. I am writing a fairly small and simple trivia program. It will be my 5th program to date. My biggest problem is how to add a list of Q/A. The program has 2 functions that handle the trivia part of the game. The 1st … | |
Hello everyone, I have a html file (that is displayed in a webbrowser) which contains an onclick function that calls an external function in c# code. I have this part working and after the external function is finished the webbrowser navigates to a new file. The html file contains frames … | |
Hi, I was wondering if anyoune could give me some code example for this situation: I have XML parser, which accepts java.io.file data structure. I need to upload XML file and made it into file structure so i can parse it by written method or upload file into MySQL database. … | |
I am having two servers viz., Windows and Linux. A service is running in Linux to produce a text file of around 8 MB per minute. If I would like to replicate (or copy) this text file to windows server which supports .Net as soon as the file is produced. … | |
Hi all. I've written a bit of code to open a file and read from it. The simple version works: [code=cplusplus] ifstream conFile("code/constants.h", ios::in); while (getline(conFile, line)) { //etc. Process file.......... [/code] However, I really want the program to look for the file constants.h in the current directory and if … | |
Hi, I have a C++ program which creates a xml file from a given data. Now I have to upload that file to a web server. I need to make a socket connection to the server and upload the file to a http server. The server where the file needs … |
The End.