6,015 Topics

Member Avatar for
Member Avatar for christiangirl

I have this program all working, except in how the text looks in the file. The text is supposed to be all on different lines, but its all on the same. Here's the code: [code] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; /* * class LogOrder * Allows user …

Member Avatar for christiangirl
0
135
Member Avatar for christiangirl

I have to write two programs, one writes to file based on what the user selects. The other reads the file, and outputs what the user selects. And I'm really not sue if I'm doing this right. Here is what I have for writting to the file: [code]import javax.swing.*; import …

Member Avatar for vee_liang
0
85
Member Avatar for christiangirl

I have to make a program where I take a file that contains users order information(the file is from another program I had to make), and then tests it and outputs how many of what it orders. I cant seem to get it to work, its running but then at …

Member Avatar for masijade
0
83
Member Avatar for AlbertPi

This is my function. see below: public void SoundTest() { try { AudioInputStream audioInputStream; File file = new File("C:\\Temp\\online.wav"); audioInputStream = AudioSystem.getAudioInputStream(file); Clip line; line = (Clip) AudioSystem.getLine(new DataLine.Info(Clip.class, audioInputStream.getFormat())); line.open(audioInputStream); line.start(); line.drain(); audioInputStream.close(); } catch (Exception e) {e.printStackTrace();} Toolkit.getDefaultToolkit().beep(); } I got this error when I ran it: ` …

0
74
Member Avatar for Devlan

I'm trying to get to grips with using files, particurlarly saving a set of inputs from the user into a file and then load it all back up again. I have a program which, through a little object oriented interactivity, allows the user to pair up names and numbers in …

Member Avatar for vegaseat
0
124
Member Avatar for christiangirl

Hello, I'm having trouble with this program. What I have to do is open a file(in this case link.dat) and then the user chooses what they want to do, take something out of it, add somethng to it, print it. It opens the file fine, but then I cant get …

Member Avatar for christiangirl
0
94
Member Avatar for IT_Techno

hi every one, i have create an asp.net application when i worke localy (on my PC) it work well without any erorr but when i deploye it at web server (vps server ) it give me this erorr: [COLOR="Red"] Configuration Error Description: An error occurred during the processing of a …

Member Avatar for dickersonka
0
398
Member Avatar for mglover070588

Hi , new to the forums:) Trying to do this tutorial from the 'C programming for scientists and engineers' book. The person who wrote it is my lecturer. The program reads the file, but when it displays it, it only shows the last line - I am stuck! I think …

Member Avatar for WaltP
1
234
Member Avatar for vmars

Greetings: The following files are all *.file . This seems wrong. They all contain similar to this: #!/usr/bin/env python from wx.tools.XRCed.xrced import main main() What are they, and can I rename to: *.py or *.pyw ? C:\Python\Scripts\ ================= editra.File helpviewer.File img2py.File pyalacarte.File pyalamode.File pycrust.File pyshell.File pywrap.File pywxrc.File xrced.File Thanks!

0
63
Member Avatar for heyitsme

Hello- I do not have much experience with python, although I am trying to write a script to do the following: I have more than one CSV file, in this example I have three, each file has many rows, and two columns, they are in this format: Column 1 is …

Member Avatar for woooee
0
92
Member Avatar for whisper_101

Hi Guys I have 2 files 1st File a user creates a Text File using the FileSystemObject 2nd File I want to send an email confirming the Text File has been created I do not want to include the script to send an email with the script to create a …

Member Avatar for Baradaran
0
62
Member Avatar for bondo

I have no clue why this isn't working. The top part that reads into size, shortTime, longTime, and threshold work fine. Down below where I try to do the exact same thing and read into x, i get segmentation fault every single time. It seems to me that everything is …

Member Avatar for Narue
0
150
Member Avatar for meddlepal

I am having a major problem with a really simple File I/O operation. I have a pretty simple datafile filled with a list of names and courses. [CODE=text] Happy Singing Dopey Dancing Sneezy Etiquette Slimey Math Grumpy Mining Slinky Karate Happy Mining Dopey Mining Doc Singing Doc Math Doc Medicine …

Member Avatar for meddlepal
0
91
Member Avatar for justted

Hello, I have been setting up a photo upload feature for a website which allows members to upload photos. I am also after some advice on how large a file should be? I thought about allowing members to upload a photo up to 100,000 in size and allowing a maximum …

Member Avatar for cwarn23
0
209
Member Avatar for Jacky1

I did make my dll file out off those two files dll.h [code] #ifndef _DLL_H_ #define _DLL_H_ #if BUILDING_DLL # define DLLIMPORT __declspec (dllexport) #else /* Not BUILDING_DLL */ # define DLLIMPORT __declspec (dllimport) #endif /* Not BUILDING_DLL */ DLLIMPORT void welcome(); class DLLIMPORT DllClass { public: DllClass(); virtual ~DllClass(void); …

Member Avatar for Jacky1
0
119
Member Avatar for regent_royal

Hello, I want to use ajax upload I m using [COLOR="Red"]"commons-fileupload.jar"[/COLOR] for uploading file... and below code is used to call servlet through ajax. Actually I am new in ajax so I can't understand what happens while I use multipart request. My javascript is [CODE]<script language="javascript"> function getXMLObject() //XML OBJECT …

0
64
Member Avatar for metabex

Hi there, I am somewhat new to PHP but catching on fairly well. However, I'm currently stumped. I would like to access the newest XML file in a folder. Right now my code is hardwired so everytime I want to see the newest file I have to actually enter it …

Member Avatar for Atli
0
118
Member Avatar for abhi_sri08

Hi, I want to use outputs from different forms of a project and save them into a single text file that could be from a module. Please suggest any tips on this. Abhishek

Member Avatar for Drycola
0
94
Member Avatar for ambarisha.kn

Consider d_type=POINT_LONG in the following program. and data.Long=0xA; In the following program i am getting correct output in constDataArea[0],constDataArea[1],constDataArea[2], constDataArea[3] which is oxA, 0x0, 0x0, 0x0. But not able to write the same into ambi.dat file. Some junk value is inserting in the front. and writing 5 bytes instead of …

Member Avatar for ambarisha.kn
0
164
Member Avatar for tyserman5674

Hi All, I am sure having problems with reading from a sequential file. I created a .txt file and placed it several places within the vb.net file folder for the program that I am writing. The problem is that when I try and run the program I get the message …

Member Avatar for tyserman5674
0
161
Member Avatar for jobojo

I am trying to write a simple program to calculate income taxes owed based on gross wages that are input by a user. The HTML page needs to accept the input (wages from 4 users) at once and then utilize a button to submit the information to an external javascript …

Member Avatar for jobojo
0
310
Member Avatar for localp

i need to write a c++ function that could read in the values of a text file, but in the text file we need to eliminate duplicate values; for example we may have values like ;;;; this is a text file, and it contains the above students, there first name …

Member Avatar for iamthwee
0
145
Member Avatar for localp

i have a text file as follows; james nnnnnnnnn mmmmm kristy llllllllllllllllll oooooooo james pppppppp ppppppppppp james iiiiiii kkkkkkkkkkkk now for the out put, i want it as follows ;;;;;;; james nnnnnnnnn mmmmm pppppppp ppppppppppp iiiiiii kkkkkkkkkkkk kristy llllllllllllllllll oooooooo the code i wrote for this is as;;;; [icode] void …

Member Avatar for iamthwee
0
598
Member Avatar for hamidreza2790

Hi I run a batch file by VB6. The bach file need to pass a text file and a string (such as abc). I used the following commands but I faced errors : Shell "n:\aa.bat " & "c:\a1.txt" & "abc " , vbNormalFocus Shell "n:\aa.bat " & " " & …

Member Avatar for bushman_222
0
188
Member Avatar for xenocide001

hi there i'm new here i hope you can help me through this homework i've read like 14 pages of topics about seekg and fstream.. and well.. they didn't solve my problem. my homework it's about creating a text file from "b to z" without the vocals, then reopen the …

Member Avatar for vmanes
0
131
Member Avatar for DeadJustice

I seem to be able to load the files in my program. Then I can loop through the lines one time, but if I try a second loop to load the strings into an array that one won't work. Here's my code. I thank you for any help in advance. …

Member Avatar for DeadJustice
0
106
Member Avatar for Lumnous

Hello I'm new here and im a bit confused about a certain code i am trying to do. The code is for opening the file dialog and when the object has been selected it would be shown in the web browser or open any file, the code i have done …

Member Avatar for Lumnous
0
518
Member Avatar for chunalt787

Our task is to write a Binary Search Tree and the data has to be input from a .txt file where in the data is held as such [CODE]12345678[/CODE] Each digit is a new node in the tree to be inserted. My Binary Tree is working because I can just …

Member Avatar for chunalt787
0
111
Member Avatar for Liszt

I have a ThirdPart program that appends text to a file randomly. I dont know how this code is doing this, thinking of opening and closing the file. I have simulated that scenario by: //Process 1 Appends Text to File //Process 2 Reads Text From File Now I am writing …

0
69
Member Avatar for mece

I am new to python and posting to this forum and my searches turned up nothing. I am writing a component for a log parser to combine events from matching dates into one file. For some reason the log files split between 19:59:00 and 20:00:00 hours daily. To resolve this …

Member Avatar for mece
0
779
Member Avatar for dmanw100

I am having problems reading in from a file in my project. I have a text file from which I need to read in data for creating some objects. I do not know how much data is in the file but I know the format is 6 lines of string, …

Member Avatar for BestJewSinceJC
0
121
Member Avatar for Djanvk

Ok so I have make a Windows form in Visual C++, and I know how to use this code to get the text from the text box to a string [CODE]text = txtBox->Text; [/CODE] That is in the Form1.h file, but I have to create some code in my .cpp …

Member Avatar for Lerner
0
87
Member Avatar for kotkata

Basically this code serves to take in an input file and convert all the "<" and ">" into "&lt" and "&gt" respectively. This works however, I cannot get it to convert the rest of the .txt file into the output file. Right now, it just works with the very first …

Member Avatar for ddanbe
0
116
Member Avatar for blackhawk9876

[code=cplusplus] // SPECIFICATION FILE (sList.h) // This file gives the specification of a sorted ADT // The list components are maintained in ascending order of value //****************************************************************** #ifndef SLIST_H #define SLIST_H const int MAX_LENGTH = 50;// Maximum possible number of components needed typedef int ItemType; // Type of each component …

Member Avatar for William Hemsworth
0
138
Member Avatar for ArtChess

Can an Adobe PDF file *any version* be set up so that when you email it to someone they can't print to it? I am trying to help my director and he can print any file but this one particular file he can't print - I'm wondering if Adobe has …

Member Avatar for davidmethew
0
140
Member Avatar for spark81

So I've got an IBM a22m laptop on which I'm trying to do a clean install of XP Pro, Service Pack 1. About half an hour into set-up, I get a message telling me that I need to insert the appropriate CD in order to find a missing ASMS file. …

Member Avatar for JussCIT
0
185
Member Avatar for kotkata

This is my code so far [code] #include<fstream> #include<iostream> #include<cstdlib> #include<stdlib.h> using namespace std; const int MAX_GENERATED = 100; void fillArray(int a[], int size, int& numberUsed); //prototype int main () { int array[MAX_GENERATED], numberUsed; fillArray (array, MAX_GENERATED, numberUsed); getchar (); getchar (); return 0; } void fillArray( int array[], int …

Member Avatar for skatamatic
0
144
Member Avatar for jakethesnake86

Ok, I have here a program where I'm trying to read a specific line from a file, store it as a string of characters, and then, if the right string of characters is stored, perform specific tasks. When I run this program I only get 11 of the characters stored …

Member Avatar for jakethesnake86
0
484
Member Avatar for thanatosys

I am still working on the lovely trie project, now I am working on file input that will be passed into the trie. I receive the following errors when I compile this code. [code] $ make gcc -Wall -g -c -o spellback.o spellback.c spellback.c: In function ‘main’: spellback.c:36: warning: implicit …

Member Avatar for thanatosys
0
133
Member Avatar for pardeep3dec

Dear Friends, I am attaching my test project with this mail. It will run on sharing folder and many user will access that programme but it is showing file already in used message; I am trying avoid this problem by my test project this programming will showing ip and computer …

Member Avatar for rstkw
0
108
Member Avatar for thakkarps

Hello, I am new to excel or vba i want to convert a data to export it to some output folder from a csv files from input folder there are 100's of such file in c:\raw which i want to work with the input file's details are the headers of …

0
38
Member Avatar for pardeep3dec

Dear Sir, My project uses Ms Access as back end tool and visual basic as front end tool. I have a problem when i run my project's tmgmt.exe file more than one time then it shows tmgmt.exe file entry into taskmanager's process tab. Suppose i used that file 4 times …

Member Avatar for sendoshin
0
258
Member Avatar for sasuke2910

Hey, I'm making a chat program so me and other students can chat in my high school and I've run into a problem None of the computers are connect with any kind of sharing folder or network drive like i thought they were so I have no where for my …

Member Avatar for sasuke2910
0
78
Member Avatar for LostInVB

I have put together this whole network account creation and audit process. The creation process starts with importing data from our ADP system into SQL 2005 and creating a .csv file for each of the 12 sites to create the network accounts, based on job title. Then I add in …

0
29
Member Avatar for sr0867

I have an application in Java. Each time a new database is added we have to make changes in java file which reads from properties file and compile it I want to make a property file and each time a new database is added just change in that file and …

Member Avatar for stultuske
0
94
Member Avatar for murderotica

Hello, I've created a windows service application that monitors a folder. Whenever there's a change inside the folder (like you created a text file or renamed a folder) it will log the changes. Now my problem is to determine that the change happened to a file or a folder so …

Member Avatar for murderotica
0
120
Member Avatar for begyu

Hi all, I have a .cpp code which reads a matrix from a .dat file and compute their eigenvalues. But I would like to read more matrices from the file not only one, and get the eigenvalues in the similar way. Please help to solve this, I stuck at this …

Member Avatar for Lerner
0
276
Member Avatar for associates

Hi, I have a several computers on my LAN. One of the computers is the file server. There are a shared folder that is currently shared on the network. There is no a proper permission set on that folder. This means anyone can access to it. What i'd like to …

Member Avatar for jbennet
0
274
Member Avatar for Dani

This document will explain the behavior and benefit of implementing Diskeeper defragmentation software with intricate modern hardware technologies such as RAID, NAS and SANs. SANs, NAS devices, corporate servers, and even high end workstations and multimedia-centric desktops characteristically implement multiple physical disk drives in some form of fault tolerant disk …

0
226
Member Avatar for PaladinHammer

In case the guys who helped me with a "pass-by-reference" function didn't see it, thank you for your help! I've only got one problem right now and thats that my program will not send data to an output file. Here's the code: [CODE]bool checkInputFile(ifstream &fin); // checks the file input …

Member Avatar for Freaky_Chris
0
547

The End.