6,015 Topics
![]() | |
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 … | |
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 … | |
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 … | |
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: ` … | |
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 … | |
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 … | |
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 … | |
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 … | |
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! | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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); … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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 … ![]() | |
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 " & " " & … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
Basically this code serves to take in an input file and convert all the "<" and ">" into "<" and ">" 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 … | |
[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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.