7,373 Topics

Member Avatar for
Member Avatar for VasquezPL

I need to write a program that will do several operations for objects delimited with ";" "," and " ," and " ;" sample csv file: user;owner;group1;group2;etc. Michael Beaver,John Dundi, Global, Cracow, NY, Berlin Dave Sadih, Sarah Flock, Global Moran Kleih, Rebeca Diaz, Global, berlin, Warsaw, Moscov, Puerto Rico ---> …

Member Avatar for VasquezPL
0
170
Member Avatar for hari.sarvothama

I'm supposed to write a tcp server program which writes into a file a record as structure. The code is given below: [code] int n,i; cout<<"Enter number of student records"; cin>>n; for(i=0;i<n;i++) { cout<<"Enter id,name,average mark"; cin>>r[i].id>>r[i].name>>r[i].mark; } [/code] [code] int i,n1; FILE *fp; FILE *file = fopen("db.dat", "wb"); cout<<"Writing …

Member Avatar for Ancient Dragon
0
381
Member Avatar for moied

I have one jsp file which inserts data in a database. Currently I have coded like the database file is available in c:\. I mean I have given a path to c:\ in code. But I want to save that in my application folder. So In jsp Did any one …

-2
37
Member Avatar for 7gakki

Hi, I got error when I tried to join two files mp3 in ASP.NET C# 'System.IO.Stream' does not contain a definition for 'WriteTo' How to fix that error? please help Here is my codes: [icode] using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using …

Member Avatar for rohand
0
230
Member Avatar for kashifboy

i have a text file with known format. which is as fallow code ItemName Quantity 001 ABC 45 002 BCA 5 003 ACB 10 i want to [B]read and write[/B] the line [B]randomly[/B] according to the [B]need of a user[/B]. for example if user want to read the data of …

Member Avatar for Narue
0
85
Member Avatar for ganesh_IT

Hi guys, i am doing one accounting project. I use 3 binary files to store account holders information, login information and transaction. For mini-statement i need to read my Transaction binary file in backward. i dont know how to do ... My structure is [CODE] struct Transaction_Info { int AccountNumber; …

Member Avatar for Ancient Dragon
0
165
Member Avatar for Mah1

Hello All, I have created a batch file on a Windows XP PC, pings over 10 servers 24x7x356 and redirects the error messages <100% loss> to an output file which is a notepad. Now I would like to add code to this bacth file that sends e- mail to me …

Member Avatar for CWorl
0
175
Member Avatar for ganesh_IT

Hi developers, i try to write a file in binary format. But that file is not in binary format, i dont know what's wrong in my code [CODE] #include <iostream> #include <fstream> using namespace std; int main() { fstream file("file path", ios_base::binary | ios_base::in); char buf[] = "BinaryFile"; file.write(buf, sizeof(buf)); …

Member Avatar for Fbody
0
145
Member Avatar for gh0st0

Hi Folks, Windows/Python3.1.2 I'm totally at a loss with this one... The code is supposed to open a file (postscript with UNIX LF-only EOL characters), look for and change a line, then write the lines back. It works fine, except for the fact that I can't dissuade Python from writing …

Member Avatar for gh0st0
0
161
Member Avatar for Vani3863

Hi All, I'm a relative newbie having trouble completing a program that is required to read the text character by character from a .txt file and to then encode certain characters to something thing else. It is then supposed to be output to a separate .txt What seems to happen …

Member Avatar for Vani3863
0
162
Member Avatar for low_coder

hey, im making a database program using standard c functions (fopen, fclose...) and i need to read and write data to files quite frequently, so is it better to open (fopen) and close (fclose) the files before and after each operation or open the files at the beginning of the …

Member Avatar for low_coder
0
99
Member Avatar for Aslam Mansoor

I will greatly appreciate, if someone could help me to revert a VB6 Exe. file into Source code file. Cause I have lost my working project as a result of formating my PC. I have a copy of the Exe. file on my Flash memory. Only hope is that to …

Member Avatar for MooGeek
0
1K
Member Avatar for dorien

Hi, I have been reading a number of posts about this, but I have not been able to figure it out. I want to write hex to a midi file. The hex code of the midi file looks like this: [CODE]4D 54 68 64 00 00 00 06 00 01 …

Member Avatar for dorien
0
9K
Member Avatar for ^Y^ nobody ^Y^

Hi, I'm trying to make a program that search strings in a file and output them (or others). My problem is, how to output a file line !? Here is my code... [CODE]string str; string str2 = "hate"; int i; ifstream file ("file.txt"); for (int index=1; index<=10; index++) { getline …

Member Avatar for amrith92
0
145
Member Avatar for judithSampathwa

hey, my question is, i have the visual studio and the SQL server confuration installed in my computer, i wrote a windows desktop application in C# and I am using a mdf file(microsoft SQL database file). i copied the database file which is the database file to the folder it …

0
29
Member Avatar for gilmarP

Hi, Can anybody give me a hint on how to add a counter inside the logfile? For example, if at first, the log file was created, it will write the current counter number, let say Log1. Everytime the application is open/launch the loop start and writes Log1, Log2, Log3, Log4 …

Member Avatar for NicAx64
0
222
Member Avatar for starmikky

I need asistance on how to handle registration forms with picture upload, rename, then preview and store the record in MYSQL database

Member Avatar for canterorist
0
103
Member Avatar for Ved_TheOne

Hello everybody, I am having problems in connecting dbf file using C# Actually, what i want to do is as follows: 1. on GO button, the code connects to dbf file saved in my local hdd ie at d:\dbase 2. the file name is billingsample.dbf of type IV 3. the …

Member Avatar for ckhong
0
1K
Member Avatar for hlonihloks

Hi, please assist; I'm trying to read a text file located on a url, and that file information is separatedby tabs, and some cases the results on it are null values, depending on the systems performance. now, I can't read it if all values are tabs, especially the last values, …

Member Avatar for NormR1
0
172
Member Avatar for sugumarclick

hi friends, I am a novice java programmer. I am in a learning process in java servlets. But i struck into a uploading a file into (desired location) server I will show my code as some one can point out where am i going wrong. Currently im dealing with null …

0
112
Member Avatar for chuck577

Hello, I asked this question in the c++ forums but I've since moved the small program that I was working on over to C# Forms. 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 …

Member Avatar for Geekitygeek
1
376
Member Avatar for John Sand

Hi! I'm new to C++ and am having a problem with saving a text file into a string. I'm using getchar() but only the last line of the rather long text file is saved into the string when used in different functions. In other words, if I include a "cout" …

Member Avatar for John Sand
0
187
Member Avatar for Rajkamal2013

Write a C/C++ program to read a text file and count the number of occurances of the words present in the file. Display the words in sorted order (increasing order of their counts). Your program should be structured as follows: readFile.cpp: file handling file -- functions to read a text …

Member Avatar for gerard4143
-1
114
Member Avatar for Pinchanzee

Using py2exe I've made an exe file which processes a file then creates a new file which details the errors found in the original file. However, at the moment I have to change the file allocation in the code each time I want to do it on a different file …

Member Avatar for Pinchanzee
0
574
Member Avatar for -Ice-

[CODE]import java.io.*; import java.text.*; import java.util.*; /** * FileSentenceReader - Uses sound i18n method to parse sentences. * Created 12/03, Last mofified 09/07 * @author: Tony Dahlman */ public class FileSentenceReader { /** Reads through a text file, parsing it into sentences * in sound i18n fashion. Returns an ArrayList …

Member Avatar for coil
0
105
Member Avatar for giannoui

Hello everyone, I'm trying to develop a program which read from a text file data. Then display one data line per time with 2 sec delay in an lcd which is connected throught the internet. I get a run time error'424' here myFile = File.ReadAllLines("c:\account.txt") '//load file. [CODE] Dim LineNumber …

Member Avatar for AndreRet
0
133
Member Avatar for Newbi1984

Hi there, I'm very new to perl so I hope that you can help me. I have a list of duplicated entries in one file and what I want to do is to search another file for those entries that appear in the first file and then rename each duplicate …

Member Avatar for Newbi1984
0
102
Member Avatar for pmardle

Hi all, Going mad not being able to figure this out. I have an application that uses the following code to write a number of user inputed variables to a text file on a seperate line per variable.. What I can figure out despite hours of googling, is how to …

Member Avatar for codeorder
0
230
Member Avatar for jonniebl

I am writing a program that creates a file and attaches it to an email. I use a loop to create the attachment, send the email and then do it again with different information in the attachment. This works well for one tim through the loop, but on the second …

Member Avatar for jonniebl
0
186
Member Avatar for dev.vini

her is the code and please tll me that how can i save the directory file in same location that is opend in textarea pls tell me soon[code]<?php if(empty($_GET['dir'])) $currdir = '.'; else $currdir = $_GET['dir']; // open this directory $myDirectory = opendir($currdir); // get each entry while($entryName = readdir($myDirectory)) …

0
63
Member Avatar for fire_

Hello. I'm writing program wich reads from file line by line and then rewrites everything to other file. This is simplifyied part of code: [CODE]for (int i=0; i<=5;) { getline (file1, str1); /* file1 is file from wich i read and str1 is string*/ file << str1; }[/CODE] No i'm …

Member Avatar for Ancient Dragon
0
275
Member Avatar for ganesh_IT

Hi guys, i want to read a file backward using iterator pls any explain me with sample code

Member Avatar for Topi Ojala
0
51
Member Avatar for dsul

Hey people, I've been coding in vb.net for a while but never had to publish anything (it didn't get covered during any of my classes) so here's my confusion: Context: My application uses an existing excel spreadsheet which it then modifies per user input, and saves the modified version to …

Member Avatar for ÜnLoCo
0
387
Member Avatar for phplover

Hi, Does a file have to be writable in order to be deleted? If a file is writable using the php [b]is_writable()[/b] function does it mean it can also be deleted because it is writable? Reason for asking is before i attempt to delete a file and record from database …

Member Avatar for phplover
0
119
Member Avatar for h612

Hello, i've a server and client code in which the error i'm getting is: on deserialization- but when i checked the byte[] length after serialization that i send they are 1550, and then over the tcpclient when i received the byte[] it was 1448 in length... any help or suggestion …

Member Avatar for h_Nick1981
0
473
Member Avatar for pdoratis

Hello there, Kindly seek your help with a C programming language program that: 1 Reads reads and modify a text fine called mydata.txt 2 In txt file, we must enter the following data : name surname telephone number like this: John West 6976688742 3 The program should be able to …

Member Avatar for challarao
0
1K
Member Avatar for iadman

Hi, In my project im using CGI and c++ in the server. When ever i download files from the server, IE 8 opens a window for every file downloaded. Then it does not close that damn new window. Please help me remove these extra windows.

0
80
Member Avatar for revsin

I'm a noob, there got that outta the way. Wrote this to serve as a very basic inventory control for our store's iPad inventory. Lets junior employees count our inventory, and then appends the count in a text file. 99% there for what I want, but having trouble getting it …

Member Avatar for revsin
0
104
Member Avatar for watery87

hi guys, am currently coding a multi threaded program to solve a maze. But firstly im having trouble saving the maze into 2d array. Any help is much appreciated [CODE] #include <stdlib.h> #include <iostream> #include <stdio.h> #include <fstream> using namespace std; void getMaze() { fstream readMaze("mazedata.txt"); string templine, line; while(getline(readMaze, …

0
75
Member Avatar for dflatt

i'm trying to use string stream to get data from an input file. the program works until it get's to adding the elements to the array. i'm still not completely sure how to make use of stringstream yet or if i'm using it right. [CODE] ifstream ipf; ipf.open(test.txt); char c; …

Member Avatar for dflatt
0
147
Member Avatar for Dremerend

Hi, I am trying to write a somewhat basic program to read and write to a .cfg file(text file). Inside the .cfg file are a bunch of lines like so: server 127.0.0.1 servername Test server_no 1 server_group 1 etc, etc. The first word in the line being the name and …

Member Avatar for PsychoCoder
0
138
Member Avatar for srikanth2321

Hi, I have a file in the project which is called as it is. [CODE] var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("WindowsFormsApplication2.ds.cdx"); var bytes = new byte[stream.Length]; var read = stream.Read(bytes, 0, (int) stream.Length); var molecule = MolImporter.importMol(bytes);[/CODE] How can I give the path of the file. I have given the path like …

Member Avatar for srikanth2321
0
60
Member Avatar for SeanC

I'm trying to create a method which checks if a certain text file is empty, and if so it deletes it. However, the program seems to freeze for one reason or another when executing this part. [CODE]try { BufferedReader in = new BufferedReader(new FileReader("File List.txt")); String str; while ((str = …

Member Avatar for SeanC
0
2K
Member Avatar for Brandlax

I want a very good download manager for my OS X.. heres the reason. i want to download Xcode and iPhone SDK which is 2GB. So i want to download it partially as the connection in my country is not very good. For example: 1.i downloaded 200MB today. 2.turned off …

Member Avatar for Anna Brooks
0
148
Member Avatar for K0ns3rv

Hello fellow daniwebians. So I've encountered this problem with querys in PHP. In the system I am working on at the moment we've created an install file which tests the db connection, creates the db structure e.t.c. But when creating the database the query fails. The query it self i …

Member Avatar for pritaeas
0
154
Member Avatar for ak_barik

When runnning scapy from command prompr (windows XP), the output cannot be stored. When the following command is executed in command prompt: scapy >C:\dir.txt The following error shows up: C:\automation\atg\GeneralFiles?_AC\ScapyExe?>scapy >C:\dir.txt INFO: Can't import python gnuplot wrapper . Won't be able to plot. INFO: Can't import PyX. Won't be able …

Member Avatar for Beat_Slayer
0
449
Member Avatar for ak_barik

I am trying to convert a testtoexe.py (which imports scapy and paramiko) file to exe. I am running Python2.6 (in PythonWin?) on Windows XP. I am using pyinstaller1.4 I am able to convert the .py to .exe, but..... I get the following error when I run the exe: C:\automation\createexe\dist>testtoexe.exe ['C:/DOCUME~1/arinc/LOCALS~1/Temp/_MEI4842', …

0
78
Member Avatar for raju_boini525

hi all, i am uploading bmp image. it is uploaded but my problem is it is not croping. i am getting this error [CODE]Warning: imagecreatefromwbmp() [function.imagecreatefromwbmp]: 'products_image/76525Linksys SPA921 IP Phone.bmp' is not a valid WBMP file in C:\wamp\www\touchintelligence\admin\products.php on line 107 Warning: imagecopyresampled(): supplied argument is not a valid Image …

Member Avatar for sDJh
0
77
Member Avatar for amithlaxman

Hi, I am a newbie to a perl. I have a problem in getting old and new contents of file. The file is like this: [code] StartTimeStamp,EndTimeStamp,counter1,counter2 Aug15 2010 22:45:43,Aug15 2010 23:00:00,6,0 Aug15 2010 23:00:00,Aug15 2010 23:07:43,3,0 [/code] The output should be: [code] Aug15 2010 23:00:00,Aug15 2010 23:07:43,3,0 [/code] After …

Member Avatar for d5e5
0
141
Member Avatar for johnroach1985

Hi. I really know very little about linux scripting. And I need help writing this script. The script is to get one parameter which is <directory>. And than the following will ensue; [CODE] for each image within directory [INDENT]if not(image exist in temp-directory) [INDENT]cp image to temp-directory and resize to …

Member Avatar for rch1231
0
178

The End.