4,718 Topics

Member Avatar for
Member Avatar for emotionalone

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 …

Member Avatar for Ancient Dragon
0
526
Member Avatar for websurfer

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 …

0
128
Member Avatar for Andymoore88

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 …

Member Avatar for Andymoore88
0
170
Member Avatar for Paddy

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 …

Member Avatar for Paddy
0
176
Member Avatar for demroth

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 …

Member Avatar for demroth
0
102
Member Avatar for PaladinHammer

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

Member Avatar for stilllearning
0
154
Member Avatar for totalnoob

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 …

Member Avatar for totalnoob
0
95
Member Avatar for freeman266

I have a question and i need an answer, whats the best file sharing program for vista because for xp i had (share pro 360) and it was okay but now i have had vista for a while and well it doesnt work as needed i was think of getting …

Member Avatar for OlyComputers
0
157
Member Avatar for aanya

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 …

Member Avatar for aanya
0
152
Member Avatar for siddhant3s

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 …

Member Avatar for siddhant3s
0
129
Member Avatar for Dr_Pepper

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 …

Member Avatar for ArkM
0
138
Member Avatar for bobrien314

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 …

Member Avatar for Ezzaral
0
111
Member Avatar for gangsta1903

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 …

Member Avatar for gangsta1903
0
156
Member Avatar for mwc547

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.

Member Avatar for Bob_180_Bob
0
728
Member Avatar for sanchyvil

My laptop and desktop were already connected (i can even view all computers on network) Now I wanted to share files but the problem is when I right click the folder I want to share I cannot find "sharing" option even in the toolbar... Please help me how to configure …

Member Avatar for zeroth
0
95
Member Avatar for quasimodo

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 …

Member Avatar for starchip
0
511
Member Avatar for Birdie010

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

Member Avatar for Diguelo
0
385
Member Avatar for abhishek29sep

I choose Multiple File download and Upload as my final year project. please give me some concepts and refernce or links which help me in this project.

Member Avatar for LizR
0
38
Member Avatar for janustt

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 …

Member Avatar for masijade
0
175
Member Avatar for espSquall

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 …

Member Avatar for espSquall
0
164
Member Avatar for Jennifer84

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 …

Member Avatar for Jennifer84
0
7K
Member Avatar for JONZ

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 …

Member Avatar for Ancient Dragon
0
125
Member Avatar for Kidd87

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 …

Member Avatar for Ancient Dragon
0
107
Member Avatar for mugun

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 …

Member Avatar for mugun
0
191
Member Avatar for Gresakl

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 …

Member Avatar for JeoSaurus
0
130
Member Avatar for CoolGamer48

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"])) …

Member Avatar for Atli
0
132
Member Avatar for JackDurden

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 …

Member Avatar for Alex Edwards
0
211
Member Avatar for erabyss

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 …

Member Avatar for Ancient Dragon
0
96
Member Avatar for kimn

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 …

Member Avatar for kimn
0
67
Member Avatar for Easter Bunny

i have a clients.dat file with client info in it. i have gone through it to find the record i want to delete, used PushBackBuffer to unread the one i want top delete, skipped that bit and carried on reading the rest and writing it to clients.tmp. after i have …

Member Avatar for Easter Bunny
0
152
Member Avatar for Nemoticchigga

I am attempting to read a text file. [CODE] ifstream indata; indata.open(filename); if(!indata) { // file couldn't be opened } else { // file opened } // keep reading until end-of-file string data; while (getline(indata, data)) { //this is where i want to store values } indata.close();[/CODE] I want to …

Member Avatar for VernonDozier
0
94
Member Avatar for hikaru1239

I am working on a code which opens a file (infile), copies it to an output file (outfile) and then asks the user for a string and searches for that string in the outfile and replaces every occurence of that string with & symbol. Here's an example: Contents of infile: …

Member Avatar for Member #46692
0
192
Member Avatar for asifjavaid

Hi all :) , I am working on video plug-in in C++.NET. I have a video file. Its size is not fixed. It can be in MBs or GBs. I have calculated sample size and sample count of video file and now I want to prepend (insert in the beginning …

Member Avatar for Ancient Dragon
0
125
Member Avatar for Simonsl8er

Hi, I hope someone can help me with this cause its driving me crazy!! I have a number of folders in the c:\Windows directory that I cannot delete (they all start with lots of underscore ______) and also 4 shortcuts in the quick link bar and cookies in the cookies …

Member Avatar for Colin 4228
0
754
Member Avatar for mnewsome

After Burning a number of files to a CD I find that the capacity has been reached. I write to inquire about the remaining files. Is there a way to use the operating system to 'compare' what has been copied and highlight what remains to be copied. Similarly, Is there …

Member Avatar for caperjack
0
85
Member Avatar for aditya_amb

I want to delete the text file output.txt ,but I get error message. File cannot be deleted used by another process. Can you please help me..I tried close nad flush commands for filestream and stream readers..but did not help.. Here is my code. [code=vbnet] Dim chkstr As String chkstr = …

0
70
Member Avatar for SHAWTY721

I have a form that contains two text boxes where the user can type in file paths, I want to check to see if the file path entered into the textboxes are valid when the user clicks on the accept button. Here is my code [CODE]Private Sub btnAccept_Click() Dim OpenFile …

Member Avatar for Jx_Man
0
189
Member Avatar for Member #372918

i have a file from which i have to read and compute the total value of all items,i dont know what methodto use to read arrays i tried DataInputStream(object).readInt(quantity[]); but it says it is wrong can any one help me in reading from the file and computing the total value …

Member Avatar for Member #372918
0
131
Member Avatar for tyserman5674

I have been trying to follow what you guys where doing here because I have to do something simalar. Can you tell me what the name of your file is jaffo, is it a .dat or a .txt file? You where using ary, is that the file name? Acient Dragon, …

Member Avatar for Ancient Dragon
0
104
Member Avatar for crotty99

Hey everyone, im working on a project for uni. The question wants me to read from a text file, place the info into an array, sort the information in that array and write it to a new file with the sorted information. So far i have been able to read …

Member Avatar for crotty99
0
124
Member Avatar for Alex Edwards

Are there any highly recommended books for file systems? If so, I would appreciate a few titles to look into! =) The purpose of doing this research is to further my understanding with programming. If I can better understand the File Allocation Table as well as other popular File-Systems today …

Member Avatar for Salem
0
96
Member Avatar for ambarisha.kn

I have input files like this a.iup b.iup c.iup....... i have these input files in a variable called fname; like this char *fname="c:\\iupfiles\\a.iup"; every time i will get file name in this variable. But how to concatenate the variable with some other name like as follows in output file name. …

Member Avatar for ambarisha.kn
0
84
Member Avatar for Soundgarden

Howdy all, Great to see the community up an running still. I'm just Hoping you guys/gals could help me again with something. Thanks in advance.. Ok Sit rep. Need to be able to scan through all files in Given folder and list them with out tree in plain list box... …

Member Avatar for vckicks
0
112
Member Avatar for alecho

Hi!, i'm writing from Argentina. I need your help! I'm doing a project for the university and i have to make a Restaurant management. Well that´s not the problem. I have to log into the software, so i need to read from a file that have the user and password. …

Member Avatar for Ancient Dragon
0
130
Member Avatar for bdcd

So I'm using this script to upload a .htm file, the only problem is after I upload the file the extension is gone and doesn't display as a web page. If I go into the folder and rename the file to vsquarel.htm the file displays as a web page again. …

Member Avatar for bdcd
0
135
Member Avatar for slytherfreek

I'm having trouble reading from my files properly. the files being read from is in this format: Q:3 D:4 N:1 and that is all in the file, it stands for quarters, dimes, nickels. yeah and the function i have to read from that is this: [code=cplusplus] void initialize (ifstream& soda, …

Member Avatar for slytherfreek
0
123
Member Avatar for tracethepath

i have made a program on text file to remove extra blank spaces in a file but it is not working correctly. when i run the program just "enter text" appears and after entering the text the screen just remains as it was. Nothing else appears. I cant find where …

Member Avatar for udayasankar
0
9K
Member Avatar for EddieC

If your application provides custom dialog-box features, menu items or other capabilities by making changes to the Windows Registry, you can deploy those capabilities to other computers simply by distributing an update or patch to the Registry. Updating the Registry involves nothing more than exporting the capabilities from the Windows …

1
516
Member Avatar for Poab9200

Hello all, I'm trying to create a simple program that creates a text file with some text inside of it. First off, I've managed to create the text file with a few lines of text. My Issue is that I need to use Quotes "" inside of my text file(main.cfg) …

Member Avatar for Poab9200
0
158
Member Avatar for daganavin1

Can anyone tell me how to go along with this project???????some sites where i can find relevant data

0
54

The End.