7,373 Topics

Member Avatar for
Member Avatar for pelusa

Hello, I need to develop an executable file suing vb.net, that will take in an article number as a parameter. Then using this article number a search will be performed in a server directory folder for a file that (if exists) will be named by convention article_number.file_extension the article number …

Member Avatar for emurf
0
816
Member Avatar for HLA91

Hi all My friend sent me a source file that wrote hello world to a text file (im a noob), I tried to modify it and give myself a challange to make a small database but it has gone horribly wrong. I dont know how to get it so when …

Member Avatar for Ancient Dragon
0
115
Member Avatar for aclogics

I have this routine in VB that takes one pipe delimited text file and splits it into multiple text files according to one key field. The records in the text file look something like this: WTX_2.0|O|F|1234|andre.couturier@rrs4.ca |5678|NBSID09876|O_20071121.TXT||1511:AE00001R||11152007||SAMPLE COMMENTS WILL GO HERE ||599|12 |401 WTX_2.0|O|F|1234|andre.couturier@rrs4.ca |5678|NBSID09876|O_20071121.TXT||1511:AE00002R||11152007||SAMPLE COMMENTS WILL GO HERE ||599|12 …

0
55
Member Avatar for controlsi

[Code=C] #include <stdio.h> #include <stdlib.h> #define SIZE 5 #define MAX 10 void fillArray(char arr[][MAX]); void printArray(char arr[][MAX]); int fileOpen(void); int main(void) { char arr[SIZE][MAX]; int success; fileOpen(); if (success == 1) { fillArray(arr); printArray(arr); } else printf("File access failed"); return 0; } int fileOpen(void) // ** this were i am …

Member Avatar for WaltP
0
132
Member Avatar for anshul.dilli

hi plz help me overcome a few errors in my encryption project.... thanks [CODE]#include <iostream.h> #include <stdlib.h> #include <fstream.h> #include <stdio.h> #include <string.h> #include <dos.h> #include <conio.h> char passwrd[6]="",pw[7]; char pass[7],code; void genpassword(); void getpassword(); void doCrypt(char *cool) { int cryp; //the main int this function uses char x; //to …

Member Avatar for anshul.dilli
0
112
Member Avatar for kehar

Hi, I had deleted some files by shifting the Shift Key but later on when I recovered the file using data recovery software and saved the recovered file in a new folder under C:\ks\recovered file. But when I switch over to the above destination folder and try to open the …

0
43
Member Avatar for gretschduojet1

Hello everyone, I haven't been stuck in quite some time, but I'm stuck. I have to read a list of names from a file, then sort them, then write the sorted names to a second file. I've been going to forum and reading articles on line but I don't understand …

Member Avatar for WaltP
0
79
Member Avatar for johnpmii

Hello, I'm tring to read a text file and pull pieces of the line into separate functions. I can open and close the file in the main. When I use the getline() it reads the whole line, I only want to read up to a certain point using strings instead …

Member Avatar for Duoas
0
161
Member Avatar for Run.[it]
Member Avatar for hidash_in

<a onclick=" window.open('C:/Documents and Settings/palanikumar.r/Desktop/Doc.bat','remarks','height=600,width=915,left=50,top=50')" ><input type="button" value="start" onClick="startclock('')"></a> see, in the above coding i am using button to open a document file. im opening it through the batch file.. the batch file contains @echo off c: cd\ cd jdk1.5.0_05\bin javac Doc.java java Doc Doc.java is a java program through …

Member Avatar for masijade
0
129
Member Avatar for hidash_in

[COLOR="Red"][B]i am opening an application using java through a batch file. when i am clicking the batch file the file download dialog box is opening . i dont need to open the dialog box without that dialogue box the file should be open. pls help advance thanks and regarda[/B][/COLOR]

Member Avatar for masijade
0
71
Member Avatar for adityav

Hi all, I am working on a program which will generate a log file for it's operation. Because of the way the program is designed, the program maintains a String variable for all the log that needs to be written and write that string into the file at it's exit. …

Member Avatar for PeterCharles
0
614
Member Avatar for gauthamnaggg

Hello all, I need to write a code that compress and uncompresses thegiven file in c.Well i know there are many algorithms available ,one of the famous algorithms is Huffman's algorithm.But how do i implement the algorithm ?.I googled a lot but couldn't able to find ?.Is there any simple …

Member Avatar for Jishnu
0
204
Member Avatar for Dvb701

// David Barkman // CSIS 123 - Murtha // Program 13 // #include <string> #include <iostream> #include <fstream> using namespace std; void displayMenu(); void addRecord(); void searchRecords(); string userName; int main() { // Prompt fior the user name cout << "Please enter your name to begin: "; // Input the …

Member Avatar for WaltP
0
125
Member Avatar for nitin_rajurkar

Hi, I created File Open Dialog (custom) using GetOpenFileName with hook file. (Files are attached). I am opening a dialog in a main window of application that has a command button. Clicking of this commad button opens File Open dialog. However, after selecting a file and clicking either "Open" or …

0
87
Member Avatar for Chaky1

[COLOR="Green"][B][I]Hello All: Can anyone tell me why I can't play MP3 or WAV files with the Windows Mobile 5 media player control when the filename is a URL? Even with the Media Player application on Windows Mobile 5 it doesn't work. If the files I want to play are stored …

Member Avatar for MidiMagic
0
134
Member Avatar for Wiizl

Hello there! I.m trying to write a function that should delete specified entry from .dat file. But it just ADDS TWO MORE NEW ENTRIES- the same as the last entry in that file. I'm trying to read all entries into temporary file and then write them all back, except the …

Member Avatar for Wiizl
0
292
Member Avatar for meiyantao

Hello,everybody! I'm writing a LAN communication programming,and I need to transport a file between different host computer. I know that the TCP is a kind of stream-oriented connection.But look at the fallowing codes: [code=cplusplus] void TripPlanner::sendRequest() { QByteArray block; QDataStream out(&block, QIODevice::WriteOnly); out.setVersion(QDataStream::Qt_4_1); out << quint16(0) << quint8('S') << fromComboBox->currentText() …

Member Avatar for meiyantao
0
187
Member Avatar for K6BON

My husband and I have been using file sharing on Windows XP Home for some time now with no problems. Today I decided I wanted to share my Microsoft Money 99 folder with him. Got it set up and checked it on my computer. No problem. Went to his computer …

Member Avatar for K6BON
0
111
Member Avatar for chrisliando

Hi I am new in Visual C++ and I want to know how to get all the > information in the listView to textBox/String > variable/ to a binary file /Serialization maybe? > > So if on the listView is consists of: > > Company | Name | Address | …

0
69
Member Avatar for Designer_101

hi, im having a bit of trouble learning php. My script is working but it is showing the amount of characters i am echoing out....heres the code. [COLOR="Red"] $tireorder = 'you have ordered: '.$tireqty.' tires.' ; //open the file and check to see if it exists// $fp = fopen("file.txt","r+"); if(!$fp) …

Member Avatar for iamthwee
0
111
Member Avatar for rani_techie

Hello Everyone, In my application i need to select a file using open dialog box. And then i dont need to open the file. I just need to display the name of the selected file in a text control. And then open the file in later part of the program. …

Member Avatar for rani_techie
0
517
Member Avatar for jbstin

I have a problem that deals with reading a random access file and creating an index file, which is a file to hold the binary tree of the random access file. I have the index file created with SSN (key), relative address of the SSN in the random access file, …

Member Avatar for WaltP
0
121
Member Avatar for swuwarrior

Whats up guys. I am new to programming and just started a week ago. I am doing this just for fun. I have a problem with a text file that i am trying to read in. I am able to read in the text file, i just need to know …

Member Avatar for WaltP
0
142
Member Avatar for phasiro

Hi, noob on board. I have some issues with the spliting data according to tab. What i need is to grab multiple inputs from a txt file and generate it into result txt file. the input file reads like; Johnny Bravo /tab S1234567 Systems /tab/tab DT012 VB /tab/tab DT234 Adv …

Member Avatar for phasiro
0
126
Member Avatar for laxmisaha

Hello ppl, I am working on a site these days, which is coded in JSP and based on J2EE technology.I have a requirement where i have to play a WAV/MP3 file on the JSP webpage. The file is saved in a database repository and is loaded in the output stream …

0
54
Member Avatar for Hyiero

Well I did not have a problem with my last program assignment which involved me making the Student class that I attached below, But in my new assignment i have too Write a program that will use the Student class developed in the previous assignment to provide a menu-based interactive …

Member Avatar for galanshi
0
123
Member Avatar for mandsmom

Hi, I have never used a forum like this before but I am stuck! I have to write a C++ program that allows the user to enter up to 20 students info. It must include Nem, Exam 1 grade, exam 2 grade, Homework average, final exam average. For each student, …

Member Avatar for WaltP
0
230
Member Avatar for lanesbalik

hi all, right now i'm trying to migrate from db2 running under linux to mysql v5.1. i manage to export out the db2 structure & data into a del (ascii) file. but when i try to load the data from the del file to mysql table, it generate an error. …

Member Avatar for fatihpiristine
0
179
Member Avatar for ArrogantLegend

Create a text file with a letter on the first line, and two double-digit numbers on the second line. Write a program using fstream that reads in your text file, creates variables to manipulate that input and outputs the following results to a different text file: "The ASCII value of …

Member Avatar for Duoas
0
131
Member Avatar for eranga262154

On my MFC application I read file and do some process on it. Here is the code I used to open and read only. [CODE=cplusplus] CFile srf_ReadFile; char * srf_FilePath = "ReadFile_001.txt"; if(srf_ReadFile.Open(srf_FilePath, CFile::modeRead)) { // Do the required process here on ReadFile_001.txt }[/CODE] So, the file should be always …

Member Avatar for eranga262154
0
138
Member Avatar for michael123

I have a simple php file for example: [CODE] <? header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=file123.xls"); header("Pragma: no-cache"); header("Expires: 0"); print "test"; ?> [/CODE] What I want to do is export php result and save it in excel file. If I run this from web browser like IE,firefox, I have no …

Member Avatar for michael123
0
110
Member Avatar for gee1288

hey guys i need some help with this input file program im getting input file invalid all the time i have no idea what to do. im supposed to create data files with data for up to 10 students and calculate their average from five perecentages i think i got …

Member Avatar for Ancient Dragon
0
117
Member Avatar for Back door daddy

I need to prompt the user for a txt file and display what the text in it. Our example is January Fishing line 132 spools 24 spools Fish hooks 97 packages 45 packages Sinkers 123 packages 37 packages Fish nets 12 ea. 5 ea. Tackle box 75 ea. 15 ea. …

Member Avatar for Narue
0
60
Member Avatar for pdwivedi

I want to open a text file in a c program which is on desktop.How can I print the texts written in the file on screen.Please help [B]Regards Prashant[/B]

Member Avatar for WaltP
0
125
Member Avatar for aymanmadkour

Hi all... I have 4 PCs in a LAN with Windows XP Professional that logon to a domain... The problem is that, to access shared files on another PC, one has to enter the username and password of the other user. How can I use file sharing on a domain …

Member Avatar for mahbubnbl
0
322
Member Avatar for coolbreeze

I am just preparing to take a quiz and he said some examples will be kind of like this and I was just tryin to get some input on if these answers I have are the right ones.. he said just do what the statement says, no further work, just …

Member Avatar for WaltP
0
90
Member Avatar for hippomg

Hi, Perhaps I'm typing in the wrong keyword phrases but I'm needing a script I can put onto my clients web site where they can upload a PDF file easily. These are inspectors and they need the ability to upload their reports so their clients can come to the site …

Member Avatar for KevinADC
0
80
Member Avatar for M_K_Higa

Greetings, I've posted this question in other news groups (msdn and a few others) without any response.:sad: I hope I don't get into any trouble for posting this question here, but I reach out for your help.:confused: I have an excel file stored in a data base table as an …

Member Avatar for M_K_Higa
0
988
Member Avatar for aus_fas1

Hi, I have the following structure to read the file data with fixed format of my binary file. Now I want that every time my ReadFromFile function is called with 'counter' variable it should 1. return me frame specified in the 'counter'. 2. The file needs to be closed only …

Member Avatar for Salem
0
149
Member Avatar for hasfoot

I am very new to C++ and am taking a beginners course in college. We have a project due this coming tues. and I am stuck, I was wondering if you could please help me. Background on proj: I am working in the circulation dept of a magazine, and it …

Member Avatar for Lerner
0
167
Member Avatar for locsin

Greetings! Anybody know how to save database file into a text file. What i mean to say my program works fine to save data into a MS Access database file. I'm trying to save this file also into a text file ".txt". And also, how to extract or open this …

0
60
Member Avatar for gustavobrust

Hello everyone! :) I'm doing a website that has lots of pages - created by the user (a wiki style) - and any page can have attachments. The file upload engine is working ok. I'm moving all the files uploaded to a specific directory. The problem is: As each page …

Member Avatar for fatihpiristine
0
65
Member Avatar for sohanonline

hello..... i just had a problem with file management in c programming.my friend gave problem but i dont know how to see the output.is there any file which i have to create first and see the answer?please help me.thanks.:)

Member Avatar for iamthwee
0
114
Member Avatar for disc

Hi all, This is my problem: [code] void StartRun( void ) { std::auto_ptr<Validate> val ( new Validate( "input.txt" ) ); val->DoIt( ); } // Destructor Validate::~WValidate( ) { if( mFileIn.is_open()) { mFileIn.close(); } if( mFileOut.is_open() ) { mFileOut.flush(); mFileOut.close(); } } [/code] The function DoIt() makes use of a DLL. …

Member Avatar for WaltP
0
88
Member Avatar for aswinikg

HI I am a newbie to 'C' and embedded application . I have a code in which the input parameter is being assigned in two ways (i) Runtime through user (ii) parameter tile the problem is, i can't give the runtime input as am a in need of creating a …

Member Avatar for aswinikg
-1
82
Member Avatar for leroytrolley

Hi I've been trying to get a email form which allows my users to send photos as an attachemt via a "upload" button. I've got it working i.e. the form is sending me the data plus the photos, but I'm still getting this error when "submit" is pressed. [B]Notice: Undefined …

Member Avatar for fatihpiristine
0
286
Member Avatar for sreejithps

Hi, I am tryiing to open a file from my python project. The path to the file is given as .\Templates\html\temlate1.html. I used the file Alerter.py to open the above said file. Actually this source file and the Templates directory are existing in the same folder and on execution of …

Member Avatar for vegaseat
0
114
Member Avatar for Ptolemy

>I disagree. You have to have all kinds of special code to get scanf() to work properly. Only if you aren't using scanf for what it was designed in the first place. When you have to write workaround code to get a function to work, you're using the wrong tool …

Member Avatar for Dave Sinkula
0
414
Member Avatar for aus_fas1

Hi, I am writing an array data to a file. The data I am getting is from some sensor and need to be written in real time. I have manged to write it but I am having problem when I try to read it, as I cannot position the pointer …

Member Avatar for aus_fas1
0
249

The End.