7,373 Topics

Member Avatar for
Member Avatar for Buffalo101

I'm using a JTable with a DefaultTableModel. I use the Load Button for populating the JTable. Anyway, the problem I have is with the Delete row button. (defaulttablemodel.removeRow). This is the whole project: [code=java] package proiect1; import javax.swing.table.DefaultTableModel; import javax.swing.table.TableColumn; import java.io.*; import javax.swing.event.*; import javax.swing.table.TableModel; import java.util.ArrayList; import javax.swing.table.AbstractTableModel; …

Member Avatar for Buffalo101
0
442
Member Avatar for kezkez

if i have a text file with data: test, 1, 2 again, 3, 4 Can someone give me an idea how to start puting each line into an object ? ObjectName o = new ObjectName(String s1, String s2, String s3); [CODE] class Action implements ActionListener { public void actionPerformed (ActionEvent …

Member Avatar for JamesCherrill
0
155
Member Avatar for BlueZephyr

I have a list of things of things I need my code to do but I don't know where to begin. I need to: -Read the first line of a file which gives the number of grades in a set. -Transfer everything in a input file to and output file …

Member Avatar for tkud
0
191
Member Avatar for bear38

About a week ago, my laptop just froze completely. Reboot successfully but froze again after a minute or so during startup (desktop screen). But whenever I click at the taskbar for connecting to WLAN or volume control it would freeze right away. Tried again many times and the same thing …

Member Avatar for crunchie
0
606
Member Avatar for LianaN

Hi! I've decided to open a new thread for discussing the problem with uploading a file to a SUB-FOLDER at the FTP Server. So, I'm using Apache Commons library and I can upload my file to the Home Directory of the FTP server. However, if I want to upload it …

Member Avatar for LianaN
0
1K
Member Avatar for Lanor

Hi...I am not able to input text file correctly as desired...... data.txt -------- Jim A James A+ Smith Cathy D Dazy Peter C I am suppose to input the above file and fill the above data in two seperate arrays. For the second column, I am suppose fill NULL value …

Member Avatar for WaltP
0
100
Member Avatar for ekkanh

Hi, how do I write a list to a file on mac os x? I have tried everything..... file = open('test.txt', 'w') mylist = ["rocks","box"] file.write("This doesnt work either") file.write(str(mylist))

Member Avatar for woooee
0
63
Member Avatar for HBK_100

I have the following in the txt file [CODE] 1 Single.Standard Standard Empty ......... ........ 70 2 Single Standard Empty ........ ....... 70 [/CODE] I ahve the code below buts its not deleting the selected id [CODE] while(!file.eof()) { file >> roomnumber >> category >> type >> status >> datein …

Member Avatar for HBK_100
0
103
Member Avatar for rfencl

Hi, I have a jsp web application running in Tomcat 6 that uses a set of 3rd party jars. One of the jars is attempting to load a log4j property file by using a relative path. ( \folder\.properties) I have the property file but I need to know where to …

0
115
Member Avatar for Trle94

Hey every one... im trying to read file path from .txt I can read it but there is one big hole in which i stepped.. So if you could help me out?? lets see the code looks like this: [CODE]Imports System.IO Public Class Form1 Function INIparse(ByVal TextStringToProcess As String, Optional …

Member Avatar for Trle94
0
155
Member Avatar for ryoonnet

Hi, I want to know if we can use javascript for file encryption (not text). If yes then how? Any help appreciated.

Member Avatar for Taywin
0
109
Member Avatar for LianaN

Hi! Could someone please help me to solve one more problem. To read the data (ArrayList) from file, I'm using the following code, which assumes that columns are separated with ",". It works perfectly: [CODE] public static List<UserDataRow> readData() { List<UserDataRow> listofusers = new ArrayList<UserDataRow>(); FileInputStream fstream = null; try …

Member Avatar for LianaN
1
6K
Member Avatar for henryford

Am I able to read or write to a file with this code or what is stumping me. The following is what I am suppose to do. Calculate each employee’s pay, and write it out to a sequential file. Be sure to include file I/O error handling logic. Include only …

Member Avatar for slate
0
174
Member Avatar for babylonlion

Hi, This is what the program does: -reads data (stock symbols, open price, closing price, high price, low price, previous price, and volume ) from a text file -do some calculation to produce percent gain/loss for each stock and produce closing assets -produce a list ordered by percent gain/loss and …

Member Avatar for frogboy77
0
2K
Member Avatar for nautolian

Hi all, I'm trying to make a program that breaks an entered sentence into seperate words, then compares the words to a predefined txt file of words. So far I have the following code, but it just doesnt work for some reason. no errors or anything. It asks for the …

Member Avatar for nautolian
0
119
Member Avatar for WolfShield

Hello everyone, I was wondering, if I wanted to make my code a little smaller in one file, is it possible for me to import another file I made? E.G. (Very simple e.g. just for helping understand what I mean) Let's say I made a program that the user types …

Member Avatar for TrustyTony
0
1K
Member Avatar for |hex

:) my project consists of me making my own two pass assembler for my systems programming class. i have finished pass 1, my code complies and everything, but, when i try to make it read an input file, it states that it is never found. i dont know what to …

Member Avatar for |hex
0
145
Member Avatar for Syrne

Hello! Well, I've been given a fairly difficult assignment (at least to me), and I can't seem to wrap my head around some parts. Here are the objectives: [I]"In this assignment you will demonstrate your ability to design a class and provide its declaration (.h) and implementation (.cpp) files. All …

Member Avatar for Syrne
0
183
Member Avatar for sah

i found the way to store wave file in mysql database as blob format. But how to retrieve the wave file from the database and store it as audio Stream in c#?

0
85
Member Avatar for adaniel058

I can not figure out why my code is reading in data to my vector in funny ways. I have added the input file and necesary class to test. It seems to be skipping values in the input file and also adding things to seperate places in the vector instead …

Member Avatar for kramerd
0
235
Member Avatar for feoperro

Hi, I have my project folder in www\project - for some reason, some of the images don't work and some do. All pictures are in the same path (project root) but some display a red cross and some display perfectly fine. As far as I know - theres no way …

Member Avatar for feoperro
0
167
Member Avatar for haxtor21

Hello Daniweb. I am trying to make an application for a ATM machine (class homework). This is the schematic that I followed [url]http://www.screencast.com/users/haxtor21/folders/Jing/media/303e583a-8f90-46f3-8ed1-a35dde2200bb[/url] My issue is that I'm trying to access a text file and search for a account ID. After the account ID i am doing a nextDouble and …

Member Avatar for haxtor21
0
194
Member Avatar for kapilsolanki84

if u want to create a file using a variable by taking its value from input data file,then your code should be in this pattern. [CODE]char ch[10];/*say input.dat contains data as 'output'*/ FILE*fp,*ft; fp=fopen("input.dat","r");/*fp is input file pointer*/ if(fp==NULL) { puts("error") } while(fscanf(fp,"%s",&ch)!=EOF); printf("%s",ch); sscanf or sprintf(ch,"%s.txt",ch); ft=fopen(ch,"w"); if(ft==NULL) { …

Member Avatar for WaltP
-1
143
Member Avatar for saadi06

HI Can anyone tell me that how to configure php.ini For $_FILES['name']['type'] I am trying to upload a flv video and it is uploading successfully but it is not showing me the type. But if i upload a .mp4 extension file it is giving me the type also and can …

Member Avatar for diafol
0
57
Member Avatar for saadi06

//this code is for upload,i have successfully uploaded my file in to uploads folder please can anyone tell me how can i get the image from my folder if(isset($_REQUEST["upload"])) { $name=$_FILES['uploadedfile']['name']; $type=$_FILES['uploadedfile']['type']; $size=$_FILES['uploadedfile']['size']; $check=$_FILES['uploadedfile']['name']; $uname=str_replace(" ","_",$name); $tmp_name=$_FILES['uploadedfile']['tmp_name']; $target_path = "uploads/"; $target_path = $target_path . basename( $uname); if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { echo …

Member Avatar for naveedkhalid
0
154
Member Avatar for krosty4782

Hi people, i have been trying a lot of codes to change a resource of a compiled exe, finally what im using is this: [CODE]using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Windows.Forms; using Microsoft.Win32; namespace WindowsFormsApplication1 { static class Program …

0
139
Member Avatar for Bri426

I'm having so much trouble with this assignment, and I was wondering if anyone would be able to help me out. Here is the assignment: This program uses the file "cities.txt", which contains over 136,000 location names in the United States. Each line of the file contains a place name …

Member Avatar for SasseMan
0
391
Member Avatar for Honkey_Magoo

I have a perlScript form that asks for a file e.g. [CODE] <%@LANGUAGE='PerlScript'%> <% $Response->Write(" <html> <head> </head> <body> <form action='editRST.asp' enctype='multipart/form-data' method='post'> <p> Please specify a file:<br> <input type='file' name='file' size='35'> </p> <div> <input type='submit' value='Send'> </div> </form> </body> </html> "); %> [/CODE] and another to gather the data …

0
56
Member Avatar for Tankadin

hi folks the program I am attempting to do here, even though its horrible so far, is one that reads in a file containing: [code] Johnson 85 83 77 91 76 Aniston 80 90 95 93 48 Cooper 78 81 11 90 73 Gupta 92 83 30 69 87 Blair …

Member Avatar for kramerd
0
180
Member Avatar for Tellalca

How is it possible to delete a byte ( char, int, double .. ) from a text file ? Suppose that the file.txt contains :"110Hello". And I want to delete "110" from the file leaving only the "Hello" part. How to do this without reading the whole file into the …

Member Avatar for WaltP
0
74
Member Avatar for avocado_juice

Hi, I have this code. It is not working properly. Anybody may know the solution? Thank you [CODE]<?php include 'admin_homepage.php' ?> <div id="sidebar1"> <b></b><br /></br></br><img src="MMU_logo.jpg" width="180" height="150"/><br /> <a href="admin_view_student.php" style="font-size:13px" >View Student</a><br /> <a href="admin_new_student_reg.php" style="font-size:13px">Add Student</a><br /> <a href="student_excel.php" style="font-size:13px">Get Excel File</a><br /> <a href="student_mailing_list.php" style="font-size:13px">Get Mailing …

Member Avatar for avocado_juice
0
840
Member Avatar for TrustyTony

This handy function turns file into stream of words stripped of punctuation, whitespace and digits, but does not split for example we'd to two words. If you want that you can further process yielded words or change the definition.

Member Avatar for griswolf
3
2K
Member Avatar for Intrade

Hello guys! I'm trying to learn the Boost regex library for a more-convenient means of error-checking and the asio library to allow a fairly portable-means of manipulating data over TCP/IP. My goal is to retrieve the file information from a website (basically http layer). My first problem is determining the …

Member Avatar for Taywin
0
249
Member Avatar for Kunal Aggarwal

I program using Visual C++ 2008. MFC Application. I was creating a program to open a Media (.avi) file. The default association of avi files is the Windows Media Player. Now in the program I want to load a button that when clicked will open the specified avi file using …

Member Avatar for srilekha nikky
0
185
Member Avatar for akkarin1313

[code]def main(): splash() wordTotal = 0 longestWord = 0 fin = open("constitu.txt") for line in fin: #n = fin.readline() wordLine = line.split() #word = wordLine.split() wordTotal += len(wordLine) #if len(word) >= 15: #longestWord += 1 #print word print "This constitution has ",wordTotal, " words." def splash(): print "This program is …

Member Avatar for woooee
0
2K
Member Avatar for bpross22

Hi everyone, I am trying to create a list of objects in python. I get the listing of all of the files from the directory that I want. Then I open each file and read it into an appropriate object and append it to the list. For some reason when …

Member Avatar for woooee
0
214
Member Avatar for Tellalca

I want to write and read a Student struct to/from a file. The program works weird . Sometimes reads 52 elements, sometimes 1 element. I couuld not see what the problem is. Help please. [CODE]int main() { FILE *deneme = openBinaryFile("C:\\text\\text.txt"); Student me = {"Mert","Akcakaya",200611004, 0}; Student you = {"Default", …

Member Avatar for mg120
0
204
Member Avatar for jackocurly0074

Hi guys, Have been doing some wxPython programming and haven't had any major issues until I wanted to display images! Basically I take readings from an external device (simple input device) and set the image in a panel based on this reading. However it seems that the picture does not …

Member Avatar for cghtkh
0
136
Member Avatar for gptArun

Hi there, I used code to fetch email address record from table abc on server but shows " Access denied for user 'mysqluser'@'serverip' (using password: YES) " [code] /********code ********/ <?php include "connection.php"; $tableName = 'abc'; $todayDate=date("m-d-Y H:i"); $backupFile = '../backup/abc_'.$todayDate.'.csv'; $query = "SELECT email_address INTO OUTFILE ".$backupFile." FIELDS TERMINATED …

Member Avatar for gptArun
0
408
Member Avatar for mangel.murti

hi all, i am making dynamic folder of company name which user enter in a textbox..... in my project all documents, images ...ect stores in that folder... fetching data for that company, report , image are fetching from that folder..... my proble is here that suppose user enter company name …

Member Avatar for kvprajapati
0
65
Member Avatar for Jeyush

Hi buddy, I have small script which upload the images. This script is working perfectly fine in localhost but when I upload that script to my website then it is not uploading the pictures. I have subdomain in my website names as [url]http://projects.abc.com[/url], In projects folder I have my photo …

Member Avatar for jamal_jarrar
0
166
Member Avatar for thexplanet

Hello all, Greetings! I have just found this site, as i was searching for how to read any file in binary mode, like when you open a word file in hex editor it will show the "D0 CF 11 E0 A1 B1 1A E1" as the first eight bytes. I …

0
59
Member Avatar for mallak alrooh

Hello":) I have code and I wont your help in telling its right or wrong and what missing.... This is the question :: If the user chooses 1, then the program asks the user: “Please enter a new dictionary file name”. The program creates a new file with this file …

Member Avatar for JamesCherrill
0
142
Member Avatar for ryoonnet

Hi, I am trying to upload multiple files using file input. And I am able to do that using "multiple" attribute of input type file. I can not use file API as I am using python on server side. So after user has selected the files, I want to access …

Member Avatar for Airshow
0
276
Member Avatar for GregPeters

Hi all. I have recently been learning C++ and have gained a moderate understanding of how things work. Texts files seem to confuse me though so i was wondering if someone could help me out. :) Basically I have a text file which looks something like: [CODE]** <Question> What is …

Member Avatar for csurfer
0
242
Member Avatar for soccer13

Hey, What I need to do is read a file- it will have a name and several numbers after, with -1 as a sentinel number to signal the end of line, ex: Rogers 15 22 6 12 -1 Myers 23 10 4 22 34 -1 ... .... ..... What I …

Member Avatar for soccer13
0
120
Member Avatar for myk45

Hello, i have a small doubt regarding the FILE structure. i looked it up in the header file (i have VC++ 2008). In this implementation, it was declared as: [CODE]struct _iobuf { char *_ptr; int _cnt; char *_base; int _flag; int _file; int _charbuf; int _bufsiz; char *_tmpfname; }; typedef …

Member Avatar for myk45
0
212
Member Avatar for 0dark

Hello guys, this is my first post, so don't be harsh if I do something stupid. Well, the reason why I'm posting here is because I need to find a method to alter the stream itself, not just the buffer I send to a variable with "file.Read(". For example, lets …

Member Avatar for Ancient Dragon
0
231
Member Avatar for bunnyboy

Consider those two function. When I load file, everything is fine, but then, when I want to save changes, the file is still being locked. Where is the catch? [CODE=C#] public static string Load(string loadPath = null) { string output; string file = loadPath == null ? _defaultFile : (_defaultFile …

Member Avatar for bunnyboy
0
212
Member Avatar for tech9x

i got a .txt file that contain data, and i would like to read from the file and then write the data to another file, is it about ifstream and ofstream?.. what i have done is just open the input file and open the output file :(( how to relate …

Member Avatar for vijayan121
0
4K

The End.