6,015 Topics

Member Avatar for
Member Avatar for natd

I am attempting to write a file matching accounts receivable program. So far I have written the master file that contains the balance of clients and a transaction file that contains the transactions. But I don't know how to match the account numbers of these files so that i can …

Member Avatar for Ancient Dragon
0
120
Member Avatar for Aamit

I want to rename file with name of ip address like (192.168.1.55.txt) In xyz.txt file have ip address. I m finding this ip address but rename giving problem??? [code=c] #include <stdio.h> #include<conio.h> int main () { int result; char ipadd[20]; FILE *pFile;; pFile = fopen ("xyz.txt" , "r"); fseek(pFile,172,SEEK_SET); fgets …

Member Avatar for Prabakar
0
357
Member Avatar for chemicaldave

I have an assignment. I have to ask the user for a string to search for in a file. The program reads each line of the file and compares each string to the user's string. It then displays the line of the file the string was found on. Lastly, I …

Member Avatar for Ancient Dragon
0
336
Member Avatar for khyaniv24

hello, i have a problem in my assembly program. i have a problem with open and create files. in my program i always open and create a new files ,but after 5-6 open\create ,the program stop working. i think the problem is that my file handle is not available (after …

Member Avatar for Salem
-1
78
Member Avatar for somename

Hi everyone. I got a total newbe question and i am new to c programming. I want to write a program that will executing commands , written in separate text file. Lets say, in perl i got something like that: [CODE]open (F,"<file.txt"); $x = <F>; if ($x == "2"){ system …

Member Avatar for somename
0
95
Member Avatar for helloan

Hi, I really need some help with this project. I'm currently a beginning C student working on a wheel of fortune program. For this program a random phrase must be chosen from a text file; the same phrase cannot also be used again during the game (there are three rounds). …

Member Avatar for jephthah
0
169
Member Avatar for lahom

hi [B]Could someone please tell me how can i open a txt file with a press of a button (MFC)? [/B] not with the infile >>> i mean [B]open "text file"[/B] and another question if i may.... [B]Is there any way i can transform a cpp file to a txt …

Member Avatar for lahom
0
150
Member Avatar for kahaj

The file is being created and it is somewhat working. It works okay if you have the program open and enter like 3, 4, 1. It's supposed to subtract these from 10. It does so, saying that you have 2 hours left. But once it's shut down and you check …

Member Avatar for kahaj
0
108
Member Avatar for enigmaenigma

Hello all. I have a txt file which has a number of links and i need to save this file as a .html page in my webserver.How do i append <html><body><title></title>'Content of the file'</body> </html> tags to the start and end of a file so that it is saved as …

Member Avatar for sneekula
0
85
Member Avatar for Moporho

Hi, I need help with a Golf Stats Program I am trying to complete. It is a dat file. My averaging functions are not working. Can someone suggest what I can do to correct the problems with both averaging functions? main [code=cplusplus] #include <iostream> using std::cerr; using std::cout; using std::cin; …

Member Avatar for Ancient Dragon
0
181
Member Avatar for kahaj

I'm trying to create a .txt file that will hold a handful of numbers. I want to be able to add them, then retrieve the sum with my program (or retrieve the numbers and add them via the program, whatever). Unfortunately, I haven't a clue how to accomplish this. Also, …

Member Avatar for kahaj
0
100
Member Avatar for rem0404

the program keeps track of a persons musical library. addsong checks to make sure that the data being entered is not already present in the file. if it is present, it is not added, if it isn't present, it is added at the end of the file. the removesong function …

Member Avatar for rem0404
0
80
Member Avatar for rem0404

the "addsong" function working, i just dont know how to tell the compiler to [B]skip over[/B] elements in the vectors with empty strings, when writing the new data to the music_library file. this is because i have to write a remove song function where, after the song is removed, the …

Member Avatar for Ancient Dragon
0
116
Member Avatar for majestic0110

Hi all - hope you are well. I am trying to print out only the first 15 characters of each line of a text file. The trouble is I am not sure how I would go about doing such a thing! Any help will be greatly appreciated. Thank you for …

Member Avatar for majestic0110
0
326
Member Avatar for hezfast2

I'm working on a program that reads a file of scores and then outputs the number of scores in certain ranges. I've got it to read the input file (scores.txt) which is set up as follows; 76 89 150 135 200 76 12 100 150 28 178 189 167 200 …

Member Avatar for hezfast2
0
154
Member Avatar for Mr NiceGuy

Hi all, Im new to python and I need some help. I have tried to get this piece of code to work for quite some time now. I finally made it work by using two while-loops. [INDENT][B]THE PROBLEM[/B][/INDENT] What I really wanted to do at the first place was to …

Member Avatar for SUBHABRATAIISC
0
110
Member Avatar for shotjase

Hey guys i have a header file and now i am writing the implementation file and defining the constructors..i am having trouble with 1 but.. void bitmap:save (string filename) { } //The bitmap representation is written to filename. The bitmap file will consist of two positive integers R and C …

Member Avatar for Ancient Dragon
0
91
Member Avatar for ChrisP_Buffalo

I'm trying to automate a series of find/replace actions. I have an input file containing a large list of stemmed verb forms like this: apolog apologis becam apologis apologis apologis apologis becom becom aris arisen arisen I want to change every "apologis" to "apolog", every "arisen" to "aris" and so …

Member Avatar for ChrisP_Buffalo
0
95
Member Avatar for Micko

Hi to all, after two months I decided to give Python one more chance. Here is a little code snippet about counting number of words in text file. (Under word I assume any combination of letters and numbers delimited by standard separators " .,\n\t" [code] file = open ( "Test.txt", …

Member Avatar for vegaseat
0
5K
Member Avatar for dpfaff

Hello, I am relativly new to programing, and I need some help on a lab project. If anyone out there can explain why I am getting the following errors. 55: inlab was not declared in this scope In funtion void selectionSort(char (*)[25], int) 74:error: Stropy was not declared in the …

Member Avatar for dpfaff
0
173
Member Avatar for eemqjunk

hello, i'm a newbie programmer (and to python, double trouble :) and running into issues reading and writing files. i'm successfully running the code below to manipulate and remove the first few lines of a text file. The text file (file1.txt) is approx. 329kb but when i run the code …

Member Avatar for ZZucker
0
92
Member Avatar for Waseemn

Hello All, Can I use cin.getline(x,y) to read a line from a file? What is the form of cin.getline(x,y) when used with files? What I need to do is to output what I have written to a file to the console. I have the file open, using ofstream, and I …

Member Avatar for Salem
0
91
Member Avatar for lech0030

Hello, I have this very simple batch file that contains one command: xsltproc -o output.html stylesheet.xsl input.xml When I double-click the batch file, everything works fine. However, the batch file doesn't work when I execute it from my vb.net application: [code=vb.net] Dim p As New System.Diagnostics.Process p.StartInfo.FileName = "[I]path[/I]\go.bat" p.Start() …

Member Avatar for Jx_Man
0
279
Member Avatar for kevin wood

i have created a file uploading system on a website that i have created and i need to know how the file can be over written. the file thats are upload are only used once and the next time the user uploads a new file i want the last file …

Member Avatar for kevin wood
0
79
Member Avatar for nelledawg

I am so incredibly frustrated right now. I have seriously been sitting here for hours trying to figure out how to validate program input using ranges from a text file. My teacher gives us a lecture that is supposed to help, but the lecture doesn't even have a thing to …

Member Avatar for nelledawg
0
103
Member Avatar for Princequarles

I want a name displayed when the letters beside it is entered from the keyboard eg when "ABC" is entered, Abraham is retrieved from .txt file when "CME" is entered, Camille is retrieved from .txt file A sample of the text file is below: CODE NAME ABC Abraham CME Camille …

Member Avatar for jbennet
-1
92
Member Avatar for demroth

I have been reading some of the posts on reading integers from files but I have not seen any on reading integers from formatted files. I have a file which is a 6 X 6 matrix consisting of integers separated by tabs. I want to read each number into an …

Member Avatar for demroth
0
144
Member Avatar for jmines

I have a problem in reading from file. I want the program to keep on reading from the file and store it in a buffer until \n\n is encountered. Then I want it to input an integer value from the user and then when the user presses enter it should …

Member Avatar for Agni
0
50
Member Avatar for Afi83

[B]Hi there[/B] I am really new in C programming (about 3 weeks). Before I begin my question I have to excuse because of my bad English. My question is on reading a file that contains double and integer type numbers. For reading file I use fgets() that read a line …

Member Avatar for Afi83
0
437
Member Avatar for tehpirate

Hi i want to read words form a text file placed in the same folder as the java file and then hold the information in an array. so far ive written code to read the text file (i think) im trying to teach my self so if ive done this …

Member Avatar for Ezzaral
0
89
Member Avatar for dgg32

Hi everybody. I come here again to ask for your advise. Thank you at first for all your attention. I have a big text file containing, say more than 10000 letters. I want to write a program, openning it, parsing out each word and compare them with a target word, …

Member Avatar for Aia
0
375
Member Avatar for paurik

Hi i am using java wrapper service api to launch my application as os service. i already configure this service for window os. but ther is problem for linux os. when i run myapplication.sh file it gives me java.lang.noclassdefFounderror error. i put my config my file follow if if some …

Member Avatar for blufab
0
208
Member Avatar for opendep

Hi, I am using visual studio 8 to create an application. I need to incorporate file browser window in a .cpp file. The code i have only browses the folders and sub folders but does not display the individual files. Can anyone help me with this..? Any help would be …

Member Avatar for opendep
0
315
Member Avatar for pherman1

Missing files - I recently recovered files off a dead and infected Lenovo through rescue & recovery. Most of the files came through fine except a group of music files. The directory and filenames are not showing up in explorer. Yes, all settings are OK so they should show. If …

Member Avatar for MidiMagic
0
97
Member Avatar for mrgreen108

After looking at the same few lines for an hour now, I cannot figure out why the user named input file isn't opening and the user named output file isn't even being created. I used the debugger in visual studio 05 to figure out the input file isn't being opened …

Member Avatar for mrgreen108
0
294
Member Avatar for jesseb07

hello, I'm working on a personal project and I was looking for some help. I am writing a program that needs to store user profiles in an external file (.user_data.dat). Problem is that anyone with half a brain can find the file and with any text editor look at the …

Member Avatar for jesseb07
0
106
Member Avatar for komany

Hello. I need help with a thing. I have a file (sound file) I will send via controller area network and therefore can only send data about 8 byte or 8 vector as data [8]. This is sent away with the command sendfile () And I need help how I …

Member Avatar for komany
0
333
Member Avatar for Phan

Hey, everyone, I am another student seeking help for a programming class. What I am having trouble with specifically is reading from a file. The program itself involves entering in some store products with information such as: product name, product ID, etc. After everything is entered, the program is supposed …

Member Avatar for vmanes
0
109
Member Avatar for VernonDozier

Hi, I am working on a project wherein one program writes to a file, but allows a different program to read from that file BEFORE the first program is finished writing to it. In this project, the first program is a game. When someone scores in the game, that activity …

Member Avatar for VernonDozier
0
214
Member Avatar for Littlen

Hi all Ive writing a simple j2me program to read from a file. Im running the midlet on a pda but im having trouble accessing the file. Im using J9 JVM on a Dell Axim, ive also installed the JSR-75 (which is need to access files), however im still having …

Member Avatar for Littlen
0
95
Member Avatar for romez

I have a log file (eg logfile.txt) which is continously updated (with the values on and off from various equipments) such as: CCC:on DDD:on XXX:off CCC:off EEE:on FFF:on DDD:off EEE:off XXX:on Now i have buttons on a vb.net form corresponding to each of the equipments such as CCC, DDD, EEE, …

0
44
Member Avatar for bondi007

when I try and drop a file into my apache folder it wont let me when I try and access my source server it wont let me, error do not have permissions :( Any Ideas? I tried loging in as root but it wont lket me at the login screen …

Member Avatar for bondi007
0
398
Member Avatar for cpp_noobsauce

Heres the problem: A scientist has been conducting experiments and recording results of those experiments. Two pieces of data per experiment have been recorded: temperature in degrees Celsius and a concentration ratio (in the range – 0.5 to 2.0). Validate user inputs. heres what I have: Part1 - Writing to …

Member Avatar for Ancient Dragon
0
116
Member Avatar for hercules22

hi all plz read below carefully All pc are connected in lan where one is win server wher i am sharing a file to give permission to a perticular user, structure is as follows 1)a)created one folder with name "test".b)shared with full permission for 10 user c)under security tab clicked …

Member Avatar for hercules22
0
163
Member Avatar for picass0

i have a text file that has delimiter. i wanted to display the test file that will take away the deliminter from my text file. i search through the net was told to use getline() which can include the deliminter. Hope that is someone who can show me an example …

Member Avatar for Nick Evan
0
91
Member Avatar for hercules22

hi all plz read below carefully All pc are connected in lan where one is win server wher i am sharing a file to give permission to a perticular user, structure is as follows 1)a)created one folder with name "test".b)shared with full permission for 10 user c)under security tab clicked …

0
41
Member Avatar for pythonuser

Hi , I would need to compare two jpg files using python. Could some one help me, how I can do this Thanks

Member Avatar for bodhankaryogesh
0
275
Member Avatar for Divya123

I have written code for an application and now i need to put some code in class file and then by refererring to that class file need to again write this code What code to put in the class file the code which i have done is like this Imports …

0
77
Member Avatar for mofoparrot

Hey guys, I'm new here, I looked through the help also searched and couldn't find anything that helped. Although I will be using the Algorithms you guys have on this site. anyways I only took a intro course to C++ about four years ago and don't remember much I wrote …

Member Avatar for mofoparrot
0
132
Member Avatar for n8makar

sort of a noob as i have been doing c++ for only a couple months now. my problem is that i am using a function to pass data from a file into an array then into a .out file. the function im using to read the data from the file …

Member Avatar for vmanes
0
518

The End.