7,373 Topics
![]() | |
I wrote a method to read in a txt file and then return the value(s) line by line. However, the value(s) are being returned as such - [Ljava.lang.String;@6f579a30. I would have expected something different. The .txt file I'm reading in has value(s) in the file like this... A B C … | |
hi users.. now i created one application in linux by using python. now i want 2 create setup file using distutils package 2 installation process.. i saw many of the setup file in other application.. each application has diffrent types of setup file.. so it make me some confusion.. help … | |
Hi Am new to this and was wondering if anyone knew a solution to this problem. I am wanting to get information from a text file into different arrays. My current text file has a new line for each driver but I would like it to look something like this: … | |
Hi, I am having a problem in javascript.It is giving me access is denied error on internet explorer and I am unable to move to my next page.Here is the javascript code. [CODE]stuHover = function() { var cssRule; var newSelector; for (var i = 0; i < document.styleSheets.length; i++) for … ![]() | |
I want to download 2 large files which is better 1-downloading each file alone or 2-download both at same time please say 1 or 2 and reason | |
OK I have a project due tonight at midnight and I know I should have posted sooner but it seemed like such simple things that I just knew I could do it on my own. I was wrong. I need your help. I have a program that essentially makes a … | |
I [url=http://www.daniweb.com/software-development/python/threads/364777]recently discussed[/url] some problems I had had in getting PyODBC working with Django and Django-pyodbc, but at the time it was decided to switch to an ASP.NET solution instead. For various reasons, we are trying once again to set up Django and PyODBC, and while we've had some success, … | |
[CODE]// this is the grading sorting program for part one #include <stdio.h> int main(int argc, char **argv) { FILE *fp; // file pointer, points to the file char file_name[32]; // store file name int ID[50]; int grade[50]; int a,b; // index variables int student_id, grades; // opening file by asking … | |
i have created a war file and save it in tomcat/webapps folder.this war file contains the code of the server that will read xml file and return it as table in a Jframe.i coded it in java and it is a web service where i create a war file after … | |
I'm trying to read integers in a .txt file into a 2 dimensional array (map). Here is the function: [CODE] void loadmap(int mapnum) { int x; ifstream inFile; inFile.open("level1.txt"); if (!inFile) { cout << "Unable to open file"; //exit(1); // terminate with error } for(int countline = 0; countline <= … | |
/** readGradeFile ******************************************************* * Read the data from inf into the parallel arrays given. * @params inf -- input file to read data from @pre inf is already open * id[] -- container for student id #s * asgts[] -- container for assignment grades * mt[] -- container for mid-term … | |
I am going through a tutorial and have come to opening a file. I'm running it in Command Prompt, but I know there is no problem with that because I have been running code in it without problems. Here is the code I'm supposed to be typing: [CODE=Python] f = … | |
Hi. I am trying to send the name of a file which is going to be launched for execution using a script from a *.js file. So in the original *.php file i have imported the *.js file like this: [CODE] <script type = "text/javascript" src = "getListsInfo.js"></script> [/CODE] Then, … | |
Hi folks. I'm having some problem here. I have a list of files to read and have to append them all to one unique file. the problem is that when i open the first file to read. I read the first line and discard it. when i read the second … | |
Hi, I was wondering if someone could help me. I am using java SWT and am trying to output a list of files and its properties to the screen. I have a file browser popping up and when i select a directory and click ok it outputs the path and … | |
Hi there, I have been having some problems with my Visual Basic. In trying to figure that out, un-installing, and reinstalling, running virus scans, etc, I have lost a lot of my time to get this assignment done. I would just keep messing around with it and try to be … | |
Alright, I am working on this for an assignment and I cannot seem to figure out where I went wrong... My first problem, whenever I input the CC number, the only one it accepts is the last one in my text file... My second problem, when it does accept a … | |
Hello, I have a problem not far from the one quoted above, namely retrieving data from a text file containing the log file, and then convert each value and come out the graphic representation. And so far my code is not working as it should, and I just can not … | |
Hi, I have been trying to execute this program and i am getting an error. Kindly help me. #!usr/bin/perl -w # The filename of the file which contains the protein sequence $proteinfilename = '/users/sukeerthiteja/desktop/perl/NM_021964fragment.pep'; # First open the file and associate a filehandle with it. for readability purpose lets use … | |
I'm trying to upload a file to a remote server using curl. The server requires that the file contents should be in the post body and the file name should be in the header. This is the code I', using : [CODE] $fp = fopen($fileLocation, "r"); $ch = curl_init(); curl_setopt($ch, … | |
Hi all . . i need to develop an uploader for my website . . i done it . but the progress bar not working . . plz do help me .. thanks in advance . . --Karthik this is my code . aspx page : [CODE]<%@ Page Language="C#" AutoEventWireup="true" … | |
Hi. I'm trying to delete a line from a Db file that I've created. I'll explain: I'm making a Db of people, which is consisted of id, first and last names - each one in a different line. When I want to delete a record, I wanted to copy the … | |
Hi! Is there any way to remove a file from a directory when a session ends? (Like when a user closes the webbrowser) | |
hello. i am working on the i/p file which will have object name=value.have any no of i/ps given by user. the value has to be updated each time a new value is entered in CLI. can i overwrite the value with some greater size value????????????? without using the tepmfile??i understand … | |
Basically i have a script that outputs a list of information about a file, Here is a sample [CODE] File Size:15423 bytes File Name:Test.txt File Location:C:\home\Test.txt File MD5 Hash:1caf4a063526d84cd5b1ae6383a426d6 File SHA1 Hash:e79bfba095a8531adcb855d7c286f5c3ca93a535 [/CODE] My problem is that i want to split the data into two columns, For example "File Size:" … ![]() | |
I want to remove all lines in a text file that start with HPL_ I have acheived this and can print to screen, but when I try to write to a file, I just get the last line of the amended text printed in the new file. Any help please, … | |
Hello guys, I am pretty new at (good) programming, so I had some pretty bad code I was using until I ran across some code and decided to model my code after it. I have the code so it has no errors, but when I run it (NetBeans) it doesn't … | |
This is a program for recording sound from an Audio Input device. I have taken help from the MSDN website ..... ! I did as they had mentioned .... [CODE] //wave.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Runtime.InteropServices; namespace Record { public class wave { … | |
Hi there guys! I've been stuck with this problem for quite a while now. I wanted to create a jsp which would upload files to sql database. I've used this code for my upload_page.jsp: [CODE] <%-- Document : upload_page Created on : Mar 6, 2011, 11:01:40 PM Author : Administrator … | |
I need to create a gui application.. When the user clicks the start button use a JFileChooser to allow them to pick a directory from the system and then run the recursive search of the file system from that directory and display the directory and each file in the JTextArea. … | |
Hello I am working in my study with xml file therefore I want to read an xml file with c++ to get the information such the coordinates of the points in order to use them later. I have written the following code, but [U][B]I have just taken only one value[/B][/U]. … | |
i am reading file and getting content , on localhost it is working and displaying result. but after uploading on server , not displaying or echo relevant content of file? any help appre thnx [CODE]$tcnt = 0; $file = fopen("/home/uploads/date/".$list."_".$Type.".txt", "r") or exit("Unable to open file!"); $file_rl = $file; while(!feof($file)) … | |
Hey, does anyone know which function/s i need to use to copy a file from one subdirectory to another, without changing the name? im on windows if that helps. | |
hi all, i have a code which searches for a string in a file, the searching works well except that it will only return that the string is found if it is the first word in the file, otherwise it will return not found. help me please [CODE] #include<stdio.h> #include<string.h> … | |
hello all i have a tgz file on the system.Now i want to download it in my jsp page.but i have not any idea how to do it. currently i am downloading the text file in jsp using following code [CODE]response.setContentType("Text/html"); response.setHeader("Content-Disposition","attachment;filename="+strFileName+""); [/CODE] please help..... | |
Hi Ok, I redone my multi-boot system and pre this, i copied all my data folder's to external drives. Now in Vista or WIn7, I get, you need Admin permission. Not only that, when I say yes to the above and then try to edit files in that folder like … | |
Hi , I need to parse a file that contain linux interface information. My file text is like below [QUOTE] Interface ge1 Hardware is Ethernet Current HW addr: 00a1.2599.0003 Physical:00a1.2599.0003 Description: BC3 - Slot 3 (Phys Slot 7) index 5001 metric 1 mtu 1500 duplex-full arp ageing timeout 0 <BROADCAST,MULTICAST> … | |
This is just a small snippet of my program but it's a gui and the criteria is when the Open option comes up the user can select a text file that contains the data that is going to be loaded into the JTable. My code only places the first line … | |
[INDENT]What is the [U][B]file naming[/B] conventions[/U] [I]to compile and run the programme[B]([/B]application[B])[/B][/I] if there [COLOR="Green"]exists[/COLOR] [COLOR="Red"][B],[/B][/COLOR][/INDENT]:icon_rolleyes:[LIST=1] [*]No class in a package; [*]One class with default accessibility in a package; [*]Many classes with default accessibilities in a package; [*]Many classes with default accessibilities and one class with public accessibility in a … | |
Getting the FileNotFound exception: java.io.FileNotFoundException: C:\Documents and Settings\User\My Documents\NetBeansProjects\MyApp\src\java\source\downloadfile.txt (The system cannot find the file specified) java.io.FileInputStream.open(Native Method) java.io.FileInputStream.<init>(FileInputStream.java:106) java.io.FileInputStream.<init>(FileInputStream.java:66) source.download.execute(download.java:25) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:441) com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:243) com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:165) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:252) org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:179) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) … | |
I am implementing an applet module which receiving an object sent from a servlet. The following is used to setup connection. [CODE]private URLConnection getServletConnection(String hostName) throws MalformedURLException, IOException { URL urlServlet = new URL(hostName); URLConnection con = urlServlet.openConnection(); con.setDoInput(true); con.setDoOutput(true); con.setUseCaches(false); con.setRequestProperty("Content-Type","application/x-java-serialized-object"); return con; } [/CODE] The following is the … | |
Time to enter the Wayback ([URL="http://en.wikipedia.org/wiki/WABAC_machine"]WABAC[/URL]) Machine to an experience I had with a new Linux user and compare it to today's more tech savvy audience. The year was 1997 and I had settled in for the evening with my [URL="http://www.guinness.com/"]favorite beverage[/URL] and a bit of channel flipping, when I … | |
hi! i have the code for saving a gridview as an html file using a savefiledialog. i want to save it to a specific path (without using the savefiledialog)... how can i do that? here's my code: Collapse [CODE] SaveFileDialog dialog = new SaveFileDialog(); dialog.DefaultExt = "*.html"; dialog.Filter = "WORD … | |
Hi all, i have a problem reading from a file in vb.net. I want to read from a file bit by bit so the file i write to is exactly the same, well almost because im planning on merging two files together but i can do that if i can … ![]() | |
I have written the following program. It collects inventory information and stores it in a file. I need to write a separate program that will access that file and give me the totals of the information stored in it ie. (quantity,wholesalecost,retailcost). What I'm specifically having trouble with is how to … | |
the aim of this programme is to create a .txt file (of which the name is specified by the user) of all the items in a certain directory (also specified by the user) the problem is about half way down, the 'mydir' bit [CODE] #include <iostream> #include <fstream> #include <string> … | |
OK, the eventual goal of my project is a kind of word insert/delete/replace. You read a file... "The quick brown fox jumps over the lazy dog." and you can delete all instances of "fox", replace "fox" with "cat", insert "giraffe" wherever you want, etc. Word processing stuff. So I figured … | |
One of my computers recently crashed. Fortunately, the .pst file was saved so not all is lost. However, I am considering [I]not[/I] installing Microsoft Outlook on the new computer. It seemed to take over too much of my system. A couple considerations: (1) If I install Outlook Express instead of … | |
Hi I need help creating a word count file, the file should print the name and number of times the words were counted in a file. I need to use the JFileChooser and the results should be printed in the resultArea of the JTextfield. example: and 33 use 24 Here … | |
Hi friends, I just wrote a small batch file that open an application. When it opens that it displays a window with four buttons and by default the cursor in on the firs button. Now I want to click on the second button that browses for the files to open. … |
The End.