6,015 Topics

Member Avatar for
Member Avatar for mnbcxz

Hi I am having a problem coding a save/change button on my form which I want to be able to edit a record in a text box then save the changes made, it will save it in a sequential dat file. At the moment it will just overwrite the entry …

0
41
Member Avatar for Sultan5000

Hello All, I program in VB6 and C#. I am having a problem with the Vista ver of Media Player 11. I am running SP1, and the problem is not restricted to one particular computer. Audio files are not playing to the end. They are stopping about a half-second or …

Member Avatar for Smalls
0
111
Member Avatar for mustafaneguib

hey guys, how are you all. i am having a little problems in linking my files. i am using gcc compiler. the command line that i use is g++ -c player.cpp to create the first object file player.h [CODE=c++]class Player_Type { private: int id; string fname; string lname; string team; …

Member Avatar for mustafaneguib
0
166
Member Avatar for MiTiM

I'm trying to read two data (different types) from binary file (First I had written these data in it). I have problem with output. it's really unexpected: 0.000000000000000000000000 and 10000. Where's the problem in reading double data type? (OS: win xp; compiler tc 3.0; similar result i get with Visual …

Member Avatar for MiTiM
0
2K
Member Avatar for sbv

hi.. to read a document file in Asp.Net and Vb.net as a Code behind , Use following Code [code] Sub Read(ByVal RPath As String) If RPath <> "" Then Dim WordApp As New Word.ApplicationClass Dim filepath = Server.MapPath("images\Resume\") & RPath Dim File As Object = filepath Dim nullobj As Object …

Member Avatar for sbv
0
237
Member Avatar for sheady

[INDENT][/INDENT]I have created a Program that first searches and returns the contents of a file into a richedit then opens up the next file finds the matching record and displays that in the rich edit and then the same again with another file. [INDENT][/INDENT]My problem is that when i search …

Member Avatar for afripino
0
276
Member Avatar for sreelatha

Hi, I have a requirement that i have two files, one is input file and another is log file(both will contain the same data mostly). I need to compare these two files and if any difference found then those lines should be write to another file(3rd file). I done googling, …

Member Avatar for sreelatha
0
3K
Member Avatar for sowmyask

I have a file names abc.txt on desktop. I wanna copy it to d:\workfile folder. If I use the code-- File.Copy(strsourceFilePath,strtargetFolderPath,true); I am getting a exception that Access is Denied. If I use Move method ,File.Move(strsourceFilePath,strtargetFolderPath); am getting the exception Cannot create a file , already exists. Can anybody help …

Member Avatar for sowmyask
0
122
Member Avatar for antwan1986

Hi everyone and thanks for reading. I'm having problems validating the file size of my uploads. With my current script, If I upload anything that is over 2Mb, I keep getting the error about file types rather than the ones about the file size. Even if I dont submit anything, …

Member Avatar for tanha
0
312
Member Avatar for JoE Guana

Hey guys, i'm new here and i'm also new to C++. I have a task where I have the user input a file name and then the program loads it into an array of type struct then finds the top 3 values and outputs them. I am so stuck right …

Member Avatar for VernonDozier
0
218
Member Avatar for mnbcxz

Hi I am having a problem coding a save/change button on my form which I want to be able to edit a record in a text box then save the changes made, it will save it in a sequential dat file. At the moment it will just overwrite the entry …

0
35
Member Avatar for jencinas69

I wote this code to this and it works the problem is that my csv file does not have the headers ID, Description , Category in the top of the file. I wrote this code [code] <?php $list = array ( "ID,Category,Description,,,,,,,,,,,,,,,,,," ); $file = fopen("DS20080507.csv","r+", 1000); foreach ($list as …

Member Avatar for jencinas69
0
123
Member Avatar for lsualum2001

My dad's PC takes up to 5 minutes to startup IE explorer. He's running IE 7 and runs more anti-spyware than anyone I know. I ran a couple of the free online scans followed by Hijackthis. Thanks in advance for the help. Here is the log file: Running processes: C:\WINDOWS\System32\smss.exe …

Member Avatar for gerbil
0
166
Member Avatar for prakasnisha

hi, thanku for your help. I need some more help with the perl scripting. i have to write a script which compares two files. now thw files have the data like File1:- .title 'title:VDDL_switched.meas0' max_rush_current = -5.4316e-02 at = 4.9415e-09 powerup_time_u_switch_ring/u2_hs65_ls_sw3l60 = 6.3951e-09 targ = 6.9051e-09 trig = 5.1000e-10 temper …

Member Avatar for Major Major
0
224
Member Avatar for D boss

hi guys, i have created a class which has a couple of buttons and each button calls a public class, class B4 is a button and it calls up the Printdata class, the Printdata class, then gets data from the database carpark and stores it into a file.txt as B4 …

Member Avatar for D boss
0
114
Member Avatar for nu2cpp

Hi, I am developing my program on a different machine but then I take the executable to a different machine to run. The program gets data over the serial port that I write to a file for later analysis. My problem is that when I run the program on the …

Member Avatar for John A
0
134
Member Avatar for deerslayer

Forwarn I am a newbe to the coding word! I am writing an application to open a 'machine code' file, in .txt format, to edit a value, save and close the file to the same directory. I have been successfull using a listbox to show all files, with the correct …

Member Avatar for chamsups
0
114
Member Avatar for zawpai

Hi, Could anyone please check my sample code? I am a beginner in C++. This code is for file comparison. Whenever I run it, the compiling result is always "Usage: compiles <file1> <file2>". I think something is wrong. Please give me some suggestions how to go through the code. Best …

Member Avatar for mitrmkar
0
160
Member Avatar for kousarrabiya

Hi, Iam trying to put username and password in some dat file(ADMIN.DAT)from changeLogin page and getting/retreiving username and password from another page from ADMIN.DAT file.... My problem is username and password details are getting stored in dat file in readable text format NOT IN BINARY.. Writing into file part is …

Member Avatar for kousarrabiya
0
114
Member Avatar for jk_bscomp

Hello Everyone!!! I hope you could help me with this one.... I am currently working in creating a chat program , a server and client communication, and I successfully able to create this type of application. This time, what I want is to attach a file for example text file …

0
68
Member Avatar for alivip

How can I get every Token (word) and PreviousToken(Previous word) From text file For example if the text file content is "Every man has a price. Every woman has a price." First Token(word) is "Every" PreviousToken(Previous word) is none(no previos) Second Token(word) is "man" PreviousToken(Previous word) is "Every" Third Token(word) …

Member Avatar for Freaky_Chris
0
244
Member Avatar for Jennifer84

I am trying to write a program that can sense if Any changes was made to the file: [COLOR="Green"]"C:\\Folder1\\One\\File5.txt"[/COLOR] If Any changes was made, then this file will be copied to destination: [COLOR="green"]"C:\\Folder1\\Two\\File5.txt"[/COLOR] So what happens is that the destinationfile will be "Overwrited". I have started out som code but …

Member Avatar for Jennifer84
0
147
Member Avatar for paltech

im new in c++ language, and im take project as follow: --------------------------------------------------------------------- write a c++ program that take compressed file as input and generate a reproduction of the original uncompressed file contain no digit characters as output, such that: 1- assume that no word contains more than 50 characters and …

Member Avatar for Salem
0
107
Member Avatar for Renoldton

Hi, I have a XML file generated externally,i need to traverse through that file and then make certain changes to the XML file or add new attributes to that file.How can i go about it?This eventually will be a Pro*C code.Kindly help me out.Thanks.

Member Avatar for tesuji
0
141
Member Avatar for riahc3

Hey everyone. Glad to become part of this community and I hope I continue to come here for a long time seeing as this site gives great helps. My problem: I have a struct that is (for example) the following: [code] #define NUM 999 struct client { int id; char …

Member Avatar for Clockowl
0
181
Member Avatar for cwolfraven

Hi. I am totally new to python. I have a problem that I have been trying to solve without any form of solution. I have a group of files in Directory A that are named like: Text__###__TEXT___###.tif These are dummy files. The real files are in Directory B and are …

Member Avatar for Freaky_Chris
0
99
Member Avatar for tondeuse34

Hey guys, lately i've been having some trouble with file I/O but usually i don't heres an example of reading a file: [CODE]print "\nReading..." myfile = open('myfile.txt', 'r').read() print "\n",myfile[/CODE] but is there and easier way to do that because when i try to run the program just stops, it …

Member Avatar for tondeuse34
0
113
Member Avatar for Paua

Newbie question; How do I cast a text file to an array, after the file is read using StreamReader? I have read many threads, code etc but I really need my hand held here, I just dont get it (especially using windows forms)...this is part of an assignment.... I've been …

Member Avatar for Paua
0
174
Member Avatar for alivip

I write code to get most frequent words in the file I won't to implement bigram probability by modifying the code to do the following: How can I get every Token (word) and PreviousToken(Previous word) and frequency and probability From text file and put each one in cell in table …

Member Avatar for alivip
0
131
Member Avatar for sowmyask

I have a c# file from which the data/ value is passed to the xml file . then the xml file is again called along with the updated data. How do I do this?

Member Avatar for ruinedpheonix
0
94
Member Avatar for ohhmygod

I got this code here, i wonder why it doesnt put in the file "in.dat" in the same folder. [CODE] #include <stdio.h> #include <stdlib.h> #define N 20 //Number of trials void main(void) { FILE * pFile; float data[N][2]; int i,j ; char overwrite; for(i=0;i <= N ; i++) /* Initinalize …

Member Avatar for Ancient Dragon
0
230
Member Avatar for ebebcb

I'm trying to write a program that first decides if a number is prime, and if it is writes it to a file I created. I'm obviously having problems (or I wouldn't be pulling my hair out and posting this). First, the errors say an identifier expected after the "public …

Member Avatar for javaAddict
0
75
Member Avatar for urmybaby

As basis for the assignment, we use a CSV file named country.csv in which information about countries is recorded. This file is posted on the assignment Web page1. The first line in the file is the header line and describes the content of each column. The first value in a …

Member Avatar for kdoiron
0
86
Member Avatar for 2xldesign

I am working on a 2 page form. I need to have a file upload on the first page. I need to pass the file upload values to the insert page. I am not sure what approach to take. I have tried sessions but had no luck. Here is a …

Member Avatar for 2xldesign
0
274
Member Avatar for nagaa
Member Avatar for Ancient Dragon
0
136
Member Avatar for nagaa

Hi, I want to do the following steps one by one 1. check whether given file is exists in the directory or not 2. if exists open the file 3.read the first line and store the values 4. got to the last line of file and store the values 5. …

Member Avatar for Clockowl
0
78
Member Avatar for Aamit

I am creating client-server application. client sends text file through `sendto()` function to server. Problems are following-- 1>At the server i am writing into new abc.txt file. but problem is it writes some garbage data also.... server side function ---- char RecvBuf[22610]; int BufLen = 22610; recvfrom(RecvSocket,RecvBuf,BufLen, 0,(SOCKADDR *)&SenderAddr, &SenderAddrSize); …

Member Avatar for Prabakar
0
619
Member Avatar for warjas816

I'm trying to write a file that first decides if a number entered is prime or not, then if it is writes it to a file. Here's what I've got, but I keep coming up with a couple errors that I can't figure out how to fix. One is that …

Member Avatar for javaAddict
0
86
Member Avatar for Sliders

I am usually not keen for asking for help in these kind of situations but I am really stumped when it comes to this, all I really need is a good step in the right direction and I should be (hopefully) fine. I am currently writing an airplane seating program …

Member Avatar for QVeen72
0
113
Member Avatar for vinz4ever

can pliz someone help, m trying to serach and display a record in shell scripting in linux i have one data file n one source file. wat should write in the source[coding] file to to search for a record acording to a search pattern entered by a user... the data …

Member Avatar for Salem
0
101
Member Avatar for kevin wood

i am trying to get an image file to display in an email, the file is stored on the server but it will not send the file with the email. i have been working on this code now for a few days and i cannot get it to work. the …

Member Avatar for amigura
0
214
Member Avatar for Kumar Arun

[QUOTE=Kumar Arun;603385]I am exploring the RS232 communication possibilities. I am faced with problems when i try to send file across the rs232 port. Please help...[/QUOTE] I am really sorry if i was not expressive enough. I will explain the situation. I have implemented the RS232 communication, At System A, i …

Member Avatar for Kumar Arun
0
174
Member Avatar for MatrixCA

Does anyone know how to change the value of FS.Length? I keep getting that it's read only. I need to read a file, let's say it's 100 bytes in size. After some data manipulation, the file becomes 40 bytes. When I write the file back , it writes the 40 …

Member Avatar for MatrixCA
0
100
Member Avatar for Jennifer84

If I am reading a .txt file with ifstream, what is the syntax to recognice if I have reached the end of file. From what I have heard somewhere before, I think it has with eof to do ? [code] ifstream File("C:\\File1\\"); std::string Line; while( getline(File, Line, ',') ) { …

Member Avatar for Jennifer84
0
274
Member Avatar for edek

[CODE=C]FILE* f = NULL; fclose(f);[/CODE] Terminates with: 'No source available for "fclose@@GLIBC_2.1() " ' [CODE=C]FILE* f = NULL; ftell(f);[/CODE] Terminates with: 'No source available for "ftell()"' Why those functions does not return error value but terminate whole program? How can I safely tell if file is opened in C and …

Member Avatar for edek
0
459
Member Avatar for Jennifer84

I am trying to check the size of a file with this code. The file is named "OneFile.txt" and is of the size 230 kb. The MessageBox will show the number 37. If I change the file so it will be 460 kb instead, still the messageBox will show the …

Member Avatar for Jennifer84
0
174
Member Avatar for nelledawg

Hi guys, I have been working on this for 13 hours straight now, and I am going out of my mind. I have a final due tonight and I cannot figure this out at all. The program is basically a product database for a sporting goods store, and I have …

Member Avatar for Prabakar
0
115
Member Avatar for lahom

hi i have a dialog based application with edit box control...i know how to save the data from the edit box to a certain file.and open it again (but i need to open the dialog and press the open button and choose the file then ok)... it is along way. …

0
74
Member Avatar for shigehiro

Hi all, I would need your expertise/advice on the problem I encounter right now when I tried to parse in the contents of .csv file. Here is the scenario: 1) I have csv file with the possible entries as follow: ProjCat,RefNum,ProjTitle,MemberName,ProjDeadline,ProjGrade --> Header I,0001,"Medical Research in XXX Field,2007","Gary,Susan",20.05.07,80 R,0023,Grid Computing …

Member Avatar for a1eio
0
260
Member Avatar for server_crash

I've created, and written to a file. It lets me do all of that just fine, but when I try to delete the file it says that I do not have permission. Is there something wrong with my code?: [code] #include <cstdlib> #include <iostream> #include <fstream> using namespace std; int …

Member Avatar for Salem
0
249

The End.