6,015 Topics

Member Avatar for
Member Avatar for katerinaaa

Hi, I would like to help me with a problem I have. I want to make a program that tokenize the text of an input file and create a new file with all the words (one word per line). Because in the input file there are numbers, html tags like …

Member Avatar for Ezzaral
0
172
Member Avatar for Matt Tacular

**I know the code looks big, but it's a very small isolated section at the bottom (starting at line 164) that's giving me the problem.** When this program is run, when I try to open the file I just appended some text to, it doesn't open... can anyone spot why? …

Member Avatar for Salem
0
149
Member Avatar for wujianwei

here's the description: ============================================= You are asked to develop a C++ program that reads a text ¯le given by the user (e.g. test.txt), and output the frequency of the prepositions contained in the text ¯le on the screen. Your program shall provide a simple interface for the user to input …

Member Avatar for Ancient Dragon
0
120
Member Avatar for Snatch98

My little sister recently graduated College and her lap top has been having technical difficulties if you will. It's pretty laggy most of the time. It constantly adjusts the virtual memory and i'm sure there are some underlying issues that I can't detect due to my untrained eye. I've defragged …

Member Avatar for gerbil
0
315
Member Avatar for Dani

What are some good file comparison utilities other than Beyond Compare, which I use but find rather clunky and not as accurate as I'd like (for programming)?

Member Avatar for dm22
0
57
Member Avatar for kiran_berry

I am running a batch file "batch.bat" Inside the batch file i am calling a VB exe file "test.exe". Within the VB I am trying to open a text file "new.txt". I am stuck at passing an error message or some variable back to batch file "batch.bat" when the text …

Member Avatar for choudhuryshouvi
0
87
Member Avatar for uninvitedm

I've been using Tomcat/local machine to produce some jsp pages for uploading files. Files are selected and added to a listbox on a form, once the form is submitted - the filenames in the list are uploaded. Firstly there is a check to see if they exist. Something to the …

Member Avatar for jwenting
0
80
Member Avatar for sofianos

Hi! i am creating a struct and i want to save it in a FILE (example FILE *fptr). it creates a file anw and it will fill some elements in the struct. Below is what i hv done so far. Btw sorry for my bad english. The reason for my …

Member Avatar for Aia
0
135
Member Avatar for ashitha

hello... i am write a programme for copy file and stores into each another file.like this way i want to copy multiple files.but the error null pointer is coming.. why the value is not displayed?I can't understand null pointer exception.. the code <%@ page language="java"%> <%@ page import="java.io.*"%> <%@ page …

Member Avatar for jwenting
0
313
Member Avatar for jaepi

hello there...is there a way to check if the file you get is the file you really want...like for example, you want an .iso file, if yo placed any file like .txt, the system will exit...but if you placed a file with .iso extension, it will continue to run...thanks...

Member Avatar for Salem
0
117
Member Avatar for clrblue

So I came down with a sudden problem today on my laptop. Whenever I tried to open My Computer, My Documents, Search for Files and Folders, Control Panel, or anything requiring Windows File Explorer, the screen would flash to the wallpaper, then all the icons would come back. That was …

Member Avatar for gerbil
0
157
Member Avatar for somita1

i use from file (text file)for take word of file i must pass space but i dont knw it and for goinnig to next line in file what do i?

Member Avatar for Ancient Dragon
0
130
Member Avatar for jaepi

hello there...im new in c++, i need your help with this one...i want to create a program that will create an .ISO image file. the user will be asked to input all the files that he wants to compress..i just want to know what topic in c++ i will study …

Member Avatar for jaepi
0
116
Member Avatar for mojeze3

this is an example of the file: Caldwell E.,CSC,25,5,500.00,250.00,100.00,20.00,1000.00 there are 18 of these entries in the file consists of : last name and first initial,department,miles walked,number of pledges, and the pledge amounts. I have to : 1. display the file content 2.compute the total pledges obtained by each person …

Member Avatar for antaryami
0
93
Member Avatar for yesm

I've got a custom class that is as follows: [code=C++]class course { private: string prefix; int number; string title; int credits; char grade; public: //Constructors course(); course(string, int, string, int, char); //Accessors void set(); void print() const; string get_prefix() const; int get_number() const; string get_title() const; int get_credits() const; char …

Member Avatar for Narue
0
143
Member Avatar for pri_skit

I have application build in Embeded VC++ 4.0 project,now i want to include (.h) file in project which is produced from another (.exe) built in Win32(App) Console.I have added header file in project workspace.The problem is (.h) file is created after compiling the project.I want to include (.h) file before …

Member Avatar for pri_skit
0
254
Member Avatar for The Shadow

Basically I'm writing a program that reads in the number of words in a file and counts them based on the number of whitespaces, though I'm also considering using tokenising im just more familiar with whitespaces. It compares the ACII code of whitespace(I think) then adds one due to not …

Member Avatar for The Shadow
0
270
Member Avatar for kmachstang

Hi guys, I need some help with file input output. I have a file that has a array size on the first line followed by a 2d array. The array size can change. I need to read this file, and place the array in a array variable. But im not …

Member Avatar for vijayan121
0
249
Member Avatar for acer1
Member Avatar for gerbil
0
89
Member Avatar for jerryseinfeld

Hi everyone again me again I have lots of questions... I have a program which reads something into a txt file like notepad. But I need to read into a dat file. Here is my code [code] #include <stdlib.h> #include <stdio.h> main() { int employeeNumber; char name[30]; char engineeringDicipline[40]; int …

Member Avatar for jerryseinfeld
0
109
Member Avatar for hack_tom

Hi have a file which consist of following thing begining of file ---------------------- my name some dfgfgfk jdksjdkls laladsl sdlsdls . . . kfdjkfdk some drt pro vhdl sdjls. ---------------------------------------------------------------- ddr.spw.df.df 0 0 0 0 0 ddr.ser.ddf.tp 1 2 3 4 1 ddr.pwq.pro.fgt.tp 1 3 4 5 7 eth.pro.iw 1 …

Member Avatar for KevinADC
0
78
Member Avatar for Phreak

Hi Can you help with amending this code, so it no longer looks at the boot ini, but will look at apx 200 separate texts files called "textfile1.txt" "textfile2.txt" etc etc consecutively for the line of text "Max100" and remove and replace with "max200" This is a piece of code …

Member Avatar for shasur
0
94
Member Avatar for RaCheer

I am trying to write a program that will scan another file for comments only. It will scan for comments of both types, // and /* */, and then print these comments. The code I have written so far works, but it prints the entire code. I would really appreciate …

Member Avatar for RaCheer
0
142
Member Avatar for jetaw03

guys, i need help in using VB 6.0.can you help me to get a data from an excel file from ms access and put it in ms excel..pls help me guys..:'( here is the sample of the file in access: sum1 sum2 22321 123123 here is a sample of the …

0
69
Member Avatar for adotl

So far as you can see below Ive got the program accessing the file and just reading the lines; Ive got the file set up like so... What is the Answers? A Do this B Do that C Dont do that D Definitely this A So this method is set …

Member Avatar for adotl
0
855
Member Avatar for karan_21584

hi, i m trying to read the xml file which contain two database table values..... when i m doing this, the 1st table value has read. but the second table value cannot be fetched.... [B][U]my code is :[/U][/B] [COLOR=#0000ff]Dim[/COLOR][COLOR=#000000] xmldoc [/COLOR][COLOR=#0000ff]As[/COLOR][COLOR=#000000] XmlDocument[/COLOR] [COLOR=#0000ff]Dim[/COLOR] xmlschfile [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]String [/COLOR]xmlschfile = [COLOR=#800000]"D:\woxml\wodet_sch.xml" [/COLOR][COLOR=#0000ff]Dim[/COLOR] …

0
90
Member Avatar for atetrault

All, New to python programming so bare with me but I haven't quite seen an easy way to do this and looking for some suggestions. I want to be able to replace some contents of an [B]exisiting[/B] file either by both inserting new statements or modifying/replacing new ones withiout touching …

Member Avatar for jrcagle
0
328
Member Avatar for jetaw03

guys, can you help me to get data from a text file and putting it in an excel file? my programming language is visual basic 6.0 here is a sample data from the text file: ANO,BNO,TRANSDATE,TRANSTIME,ORIGINS,DESTINATION,CA LL_TYPE,OUTROUTE,INROUTE,CALLS,ACTUAL_MINS,COST 0498373386,[U]006623322001[/U],20070216,16:33:35,SRO,THB,IDD,IBEF7O,,[U]1[/U],[U]0.766666666666667[/U],-0.014413 0498373386,006623322001,20070223,12:59:40,SRO,THB, IDD,0241,,1,0.8,-0.01264 0498373521,0096265522113,20070207,11:22:59,SRO,JO, IDD,0241,,1,0.433333333333333,-0.019717 i wll get the underlined data, then i …

Member Avatar for jetaw03
0
395
Member Avatar for anitha2324

[color=#000000]hi All,[/color] [color=#000000] [/color] [color=#000000]am Newbie To Asp.net, I Want To Allow The User To Upload A Text File From Any Client In The Network To The Server And Then Insert The Contents Of This File Into A Table In Oracle Database,[/color] [color=#000000]contents Of The Text File Looks Like (employee …

0
113
Member Avatar for newage_gargoyle

I've created a simple table quiz program in VB6 and I want to load a help file (help.hlp) from within my code. I want the program to load the file when I select it in the Main Menu. I've tried using the load ("") function with the file file path …

Member Avatar for newage_gargoyle
0
350
Member Avatar for new_2_java

Hi all, I am trying to create a file and write something into that file. Here's what I have tried: [code] import java.io.*; import java.util.*; public static void main (String[] arg) { try { String file_name = "test.txt"; FileWriter file = new FileWriter(file_name); BufferedWriter out = new BufferedWriter (file); String …

Member Avatar for new_2_java
0
1K
Member Avatar for vuthcam

Would you mind helping me to solve the following problem!! I have a file [B]wires.inp. [/B]it is existing in c:\\ctemp\\vuth\\wires.inp. When i tried to open it : FILE *fwiresInp; fwiresInp=fopen("c:\\ctemp\\vuth\\wires.inp","r"); Error existed!!! it means that i cannot open the file above. Could u suggest me some solutions?? Is it because …

Member Avatar for WaltP
0
150
Member Avatar for anad90

I had a 4.2 GB video (made in iMovie) that I was trying to send to iDVD, however, because of all the weird complications with Macs assuming you want to copy a file rather than move it, I decided to put it in the trash folder, so I could move …

Member Avatar for John A
0
111
Member Avatar for jamshid

hi DW Shell Script Kings :) i have some problem in a step of my assignment. thats i can read the file with this : [CODE] #Read all text from file echo -n "Enter file name: " read fileName while read inputline do echo $inputline done < $fileName [/CODE] how …

Member Avatar for jamshid
0
93
Member Avatar for ashok221280

how can i create file and print server, please me step by step process to creating these server.

Member Avatar for jbennet
0
36
Member Avatar for winbatch

Is there a way using file handling functions to search within a text file to find the position of certain text WITHOUT having to read each character/line and evaluating it? For example, let's say I have a file of 'messages', where a message has a distinct start and end characters. …

Member Avatar for vijayan121
0
365
Member Avatar for ShaneUniStudent

Hey guys, i am about to throw it all in because i just cannot get this to work :S. All i wanted to do is search through a file and find a string and replace with an argument from the command line. So basically i have a file which has …

Member Avatar for ghostdog74
0
206
Member Avatar for CRD

I am trying to write a program to print a file to a printer. havent gotten fery far till I started to go ary, here is the listing so far. [code=c] // This Program is to print a file listing with line numbers to Printer. #include <stdlib.h> #include <stdio.h> #include …

Member Avatar for WaltP
0
213
Member Avatar for ravenous

Hi there, I am trying to make a piece of code in C that: 1. opens a specified file, 2. Reads the data in the file and separates it into two arrays, based on the position of commas, 3. Converts the strings into doubles and then perfoms some manipulation on …

Member Avatar for WaltP
0
1K
Member Avatar for squinx22

how could I link the implementation file to the header file and to the main function. I made this program; // This is my implementation file.. (imp.cpp) #include <iostream> using namespace std; #include "CRectangle.hpp" output() { cout<< "hello"; return 0; } // This is my header file.. #include <iostream> using …

Member Avatar for John A
0
169
Member Avatar for ashok221280

i want to create a file and print server in 2003 server platform.how can i create these server .what is step of creating both server.

Member Avatar for TheNNS
0
65
Member Avatar for LieAfterLie

I'm making a program that compresses text files using the LZW compression algorithm and creates a seperate compressed file. I made a file type and extension and icon for this file type (.nct), and set up 2 actions for it - one that calls the program and passes the .nct …

Member Avatar for vijayan121
0
122
Member Avatar for bondo

I'm working on a program where I'm reading a file and I have to count the number of entries in the file. Each entry takes up a different number of lines, but each entry is also separated by a '#'. I'm wanting to read through the file and count the …

Member Avatar for iamthwee
0
115
Member Avatar for adnichols

I have been having difficulty trying to figure out how to read in data backwards. I get the idea, but have no idea how to properly code it since it is string data from a txt file. I was given the basic file to start with, but need to add …

Member Avatar for adnichols
0
134
Member Avatar for Zatnik

I've finished my assignment (messily) and it works well enough in the uni linux computers - but I can't make file input work at home under XP. I wouldn't have thought that the windows/linux change would make a difference with the JRE... (But then I'm new to this "com-puuuu-tah" stuff) …

Member Avatar for thekashyap
0
112
Member Avatar for Lance Wassing

Hello Everyone, My question is pretty basic, i hope. Basically, what i have is an extremely large text file, which acts as a flat file database... in essence. Text file formatting looks like this: CLIENT CODE | CLIENT NAME| CLIENT ADDRESS 1 ... This pattern goes on for about 23 …

Member Avatar for WaltP
0
134
Member Avatar for Arrow203

Hey all~ I was just wondering.. Is it possibal for my app to run a disk scan to look for the files that I had put into each location? Like if i wanted to install it onto several other computers that may have altered settings i just run a scan …

Member Avatar for iamthwee
0
81
Member Avatar for winzohmy

I feel kind of dumb, sorry about the mix up. Anyhow, I got the abominal 'CLICK ME' link in an IM and if you can't guess already I definitely clicked and then things got messy. It was something through MSN if that is needed and I've come to find my …

Member Avatar for gerbil
0
134
Member Avatar for staneja

I need to get information about the time taken by tomcat server to get restarted and also when i paste some war file inside Webapps folder i dont observe anything on the startup.bbat file............I mean it should register with that file I think there must be some property file with …

Member Avatar for jwenting
0
60
Member Avatar for swordy06

Hi fellow c++ programmers, I need some help with an assignment from my c++ class. The assignment is to use a input file with the following 1 4/12/2007 34 -- 1 is the reference number, date , and temperature to be converted to farenheit. Now i have to output it …

Member Avatar for John A
0
252

The End.