7,373 Topics
![]() | |
Hi I am trying to write a file writer inside my mouse event code. I am trying to use the file name that comes from JTextField and write it into a file. Here is my code:- [code] private void jButton2MouseClicked(java.awt.event.MouseEvent evt) { JFileChooser chooser = new JFileChooser(); chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); chooser.showSaveDialog(this); chooser.getSelectedFile(); … | |
Hello all, :) directly here is the issue: i want to choose the path to my database file for my DBdataset in a VB .net project during the runtime in the first form, and then i want to use that file in some other forms. the file could be on … | |
Ok so I was working on file handling, nothing special just making new (.txt) files and putting some text in it. That works fine the problem is that when I try to read the file from within python nothing comes up and when I try to open the file once … | |
Hello all, Thanks in advance for any type of help, i want to create a text file from already created textfile, which will have all the "\t" characters replaced with "\n" e.g abc.txt ammar hassan shah naqvi new.txt ammar hassan shah naqvi here is the code i m using, but … | |
hey guys, i would greatly appreciate it if u wood help me out to see whats wrong with my codes.... heres my question and heres my code...... DONT 4GET TO MAKE THE TEXT FILE TO RUN IT !!!! <input.txt, output.txt> <fp_in, fp_out> 1. Write a program to average real numbers … | |
Hi Guys & Gals, I have a JS file for an AJAX app that works great in Firefox, Chrome, and Opera, but not in IE6 or IE7. The JS file is located here: [url]http://www.russwilliamsart.com/scripts/imago.js[/url] and the XML file it grabs info from is right here: [url]http://www.russwilliamsart.com/gallery/Giclees/gallery.xml[/url] I think the problem … | |
I want to get image from the file..I m able to do it....But mine code do not close the file,after getting the image,I want to close the file.Cz after getting the image,I want to delete that file.....on Deleteing error is dere file is user by another process... Public Sub GetImagesContent(ByVal … | |
I'm using a script called Ajax Upload to upload files. I have a div that has a php script inside so that when the page loads I can see the listing of all the files. My problem is that I want to update this list of files without having to … | |
I'm using a script called Ajax Upload to upload files. I have a div that has a php script inside so that when the page loads I can see the listing of all the files. My problem is that I want to update this list of files without having to … | |
HI Team, First of all, I'm new to C++, so my knowlege is like 2% and I would like to thank you for any help provided. Well I'm working on a project that looks like this: -- I'm creating an executalble (EXE) that will monitor and create a file into … | |
Hi all, I have one windows service made in C#. I want My service to create CSV file every two minutes... but it should overwrite the existing file every two minutes. but whenever I try - it says file is already open - while I am sure that file is … | |
hello.. its me again and Im having problems with files again..this time, its with link list.. I can't get my program to display the contents it reads from a file. Please help.. I want to solve this myself but I have no time, my exam will start in 1 hour..:( … | |
Hello.. im having a problem with my code.. when i save a file, then choose another variable and load the file, then try to display it, all that it display are garbage values.. i know the problem is either in function save_file or function load_file.. can anyone please help me.. … | |
Hey guys, I've got a mobile application written which can browse through directories on the handheld device. This links to a C# application on windows via a usb cable (Simple phone cable). now i'm wondering how to go about transfering a file from the device over the serial conection and … | |
Create a text file on desktop as “text.txt”, content of file will be a single line as “FILE ORGANIZATION AND ACCESS METHODS”. Write a program to read from file only “ORGANIZATION” word and print it on screen. And i am doing that but it does not work . [code=c] #include … | |
I'm writing a function that creates an html file, loads it into a invisible browser, prints, then deletes that html file. However I'm getting an error in the print and delete portion. [B]Here are the two errors[/B] [B](Output from the debugger)[/B] A first chance exception of type 'System.IO.IOException' occurred in … | |
Dear my friends, I am working a project to import and export a large amount data. Right now I save the data in spreadsheet but time consuming. I want to import and export those mixed data directly from and to csv file saved in C:\. The data file is comma … | |
Hello guys, I need an expert advice if it is possible to code inside an XML file? Example, news.xml whereas in that file you have to code connecting to MySQL database then retrieve data. Generated data is the XML required tags for the RSS and will be written in similar … | |
I want to read just the last record of file....I m able to read the whole file. Secondly I want to know that in VB.Net we have ubound to get the upper bound of the array..What is the equivalent in ASP.net? [code] protected void Page_Load(object sender, EventArgs e) { string … | |
Good morning, I would like to ask for your help, I am working on getting a text file read using using a java applet, the content of that text file is generated with an object in the class TowersOfHanoiExecute TowersOfHanoi towersOfHanoi = new TowersOfHanoi( totalDisks ); after which I was … | |
I am receiving the below error regarding the AJAX Extensions. My host says that extensions are already installed on the server. Hence, do not include them in the bin directory of your asp.net website. However, I have not included them in the /bin directory. Can anybody help as to why … | |
i want to write data accepted in a form to a text file. this is the code i am using. [code] $file=fopen("data.txt","a+"); fwrite($file," whatever i want written"); fclose($file); [/code] but nothing is being written to the file. the text files are in the same place as the php pages. does … | |
Hi All, For my final assignment, I need to create a BookCatalogue and save the data to a file on the disk. I have created a Book class that get and inserts the fields: Book title, author and type. [CODE] public class Book { private String title; private String author; … | |
I am trying to configure log4j for one of my web projects. For that I want to read the log4j.properties file. Below is the code [code] private URL url; private File file; file = new File(url.getPath()); DOMConfigurator.configure(url); [/code] Following is the error Exception in thread "Thread-1" java.lang.NullPointerException Then I try … | |
Hi friends, I have developed a program with reportlabs module to generate a PDF file on macos x. The pdf file is generated successfully But, i cant open the pdf file automatically i mean manually i click on that file then it will be opened. Also i used this syntax … | |
Hi All, I need to create a HTML page which plays live audio. (I know to play an audio file using <object> tag) But my requirement is to stream live audio please help me to solve this. Thanks | |
Hello all, I am new and I was hoping someone could please help me out. My problem is, I am trying to design a C program to read in a text file containing values, and output these values in binary form. the text file "values.txt" looks like this: 139 <tab> … | |
import csv file = open('signin.csv',"rb") reader = csv.reader(file) rownum = 0 for row in reader: if rownum == 0: header = row else: colnum = 0 for col in row: print '%-8s: %s' %s(header[colnum],col) colnum += 1 rownum += 1 file.close() Hi could any one help me out, i am … | |
hi, i am having a problem with file input/output..the file created in the program using open command is not getting listed in the command line directory..also, the file created in one program cannot be retrieved in another program...how do i solve this problem??is this a problem with the operating system?? … | |
I'm trying to learn wxPython. Unfortunately when I came to China in Jan I had to leave the nice wxPython book in Canada because it was too heavy for my suitcase. So I humbly ask you to bear with my ignorance. As practice (and because I have a practical use … | |
Hello, I am currently writing a powerpoint presentation that is an interactive survey. It takes in a file of data, and adds it to a big dynamic array. When the user answers questions it picks the data from the array and populates an excel spreadsheet for a final output of … | |
hi , I'm trying to store linked list in a file . I opened a file with extension txt but when I opened it to read it . It was encrypted does anyone know why?? | |
I want to know that how many Student class objects in a file. plz help me out. Below is a class of Students and 2 function for read and write object in a file, in read function [code] while(in.eof()!= 1){ in.read((char *)&st,sizeof(st)); st.showData(); } [/code] st.showData(); always show the last … | |
I have a code that calls a method, but after this call, any code after it is not executed....here is the method call skeleton [code=java] if(//some condition){ //some code myMethod(//some variables); //some code/*not executed*/ }[/code] the calling is done well but the code stays in that method i.e code following … | |
I m surprised and wanna know that how the compiler understand the sequence of how data was entered. as i didnt use any space any tab not a new line, how it can point to the original value from a single line..????????? find.txt contain the following line with out spaces … | |
hi! I m using netbeans 6.5.1 i am trying to read a text file from a jsp using the code [code] BufferedReader input = new BufferedReader(new FileReader("contactus.txt")); [/code] this file "contactus.txt" is placed in the same folder (ie web folder) as the jsp file. but the browser is giving the … | |
Hello, I am writing a method which must open a file, read its contents, close the file, open it later, write to the file, and close it again. The method is failing at the first step and throwing an IOException when trying to execute: [CODE]FileInput Stream fileHandler = new FileInputStream("myfile.fil");[/CODE] … | |
So I have my text files saving perfectly from my program in the exact way I want them to. Here is a copy of the text file that my program saves that I am now trying to load back in, parse, and set up internally as another object: [CODE]scott-survey m/c … | |
The .h file traditionally holds declarations and the .cpp file the definitions. The #include inserts the human readable ASCII code that is the .h file, right there at the top before compiling. The main purpose of the .h file was to gather together all the declarations (more even than you … | |
Hi i created input type file elements dynamically by js the elements are not parsing by php in post method. if i removed the table tags around them, then its working. could anybody help me with this to go on. just copy the code and run in wamp and resolve … | |
So I have this function that is supposed to output an object (save an object) to a .txt file. It doesn't output anything when the program comes to the point where it runs this function. I am 99% sure this is where the program hangs. [code=java] public void saveSurvey(String txtFile) … | |
Hi I am new to unix and want to learn shell scripting. Right now I am use cygwin for windows but sooner I will switch to ubantu. So when I wrote my first script (just copied from the book I was reading), I came to know I have to give … | |
Im new to java. I Created this code to get a better grasp and idea how files works. The code executes but the file never appears on my desktop, can someone tell me why and how i can correct this issue. [CODE] import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; … | |
I've searched the web for hours trying to find how to delete a file from the registry but havent found anything. basically what I want to do is delete a file from a folder inside of the software folder of HKEY_CURRENT_USER for example HKEY_CURRENT_USER -> Software -> MyProgram -> MySettings … | |
I'm creating an input form for users so that they can input various bits of info into a db. One of the fields is so that they can upload a file, which puts the file onto the web server and the path to it into the db. The problem is … | |
I need to Stream [B][COLOR="Red"]Live[/COLOR][/B] Audio and Video, i went through a web site, and it gives a code, [URL="http://www.cs.odu.edu/~cs778/spring04/lectures/jmfsolutions/examplesindex.html#transmitboth"]http://www.cs.odu.edu/~cs778/spring04/lectures/jmfsolutions/examplesindex.html#transmitboth[/URL] in this, i dont no how to run the application, because we should have 2 port addresses each for Audio and Video. how do u compile this(The Command line arguiment) … | |
Hi, I am struggling with the best way to twiddle a large number of bits. What I have is a large amount of binary files(~100) in my directory that I need to do post processing on. I want to compare all the bytes in each file and see when the … | |
Hello I'm making a program where the user will be able to organise their orders so they see which ones are complete and incomplete. I want to allow the user to be able to delete an entry from a file (*.txt) as this will be used in two ways: 1. … | |
Id like to edit a file. At first i thought this was going to be easy, but now it appears quite complex. As i understand it there is no standard way to delete part of a file? im storing data on different lines in the file, and want to target … | |
I create a three file attachment on the index i name it file attach,file attach2,file attach3 When i wan to upload it only upload one can some one help below is the code. [code=php]$fileatt = $_FILES['fileatt']['tmp_name']; $fileatt_type = $_FILES['fileatt']['type']; $fileatt_name = $_FILES['fileatt']['name']; $fileatt2 = $_FILES['fileatt2']['tmp_name']; $fileatt2_type = $_FILES['fileatt2']['type']; $fileatt2_name = … |
The End.