7,373 Topics
![]() | |
Hi, I am fairly new to Java and am about to begin a programming course in the next week. I am preparing by completing exercises and am stuck on this particular one. Basically, i need to read a file in a certain format and calculate some figures and writing the … | |
Hi Guys, Basically I have an application that reads in a .hex file and I want to be able to then sort the hex values out line by line into a 2D Array ready for further processes. Example of a .hex file [CODE]:10010000214601360121470136007EFE09D2190140 :100110002146017EB7C20001FF5F16002148011988 :10012000194E79234623965778239EDA3F01B2CAA7 :100130003F0156702B5E712B722B732146013421C7 :00000001FF[/CODE] Below code is … | |
Hi I'm trying to read a text file by use a array for an interactive map. In the text file I stored shop names such as: Label2.Tag = "test" Label3.Tag = "House" When I hover over a label it will display the name in another label such as "lblShowName". So … | |
Hi, I'm in the process of nailing together a small program, the purpose of which is very simple: Monitor a number of various network locations for the existence of some files. when they spring into existence, check to see if someone is using the file and when it accessible, light … | |
When I need to serialize things to a byte array I usually write the array to a MemoryStream first then use the binary formatter to serialize it to whatever (file, another byte array whatever). The question I had was, can I just serialize a byte array instead of converting it … | |
I have to read an Excel file and transfer the contents to the database using Java swing.The excel file contains questions for the surveys with options for answers or responses.The database should have a table say Question with columns "Question No., Question, Option 1, Option 2 and so on".I have … | |
I'm using VS 2010 and I always get multiple error messages: '<<': no operator found which takes a left-hand operand of type 'std::string' (or there is no acceptable conversion). I get that for lines 36 and 52. Then I get "Intellisense: no operator "<<" matches these operands for lines 36 … | |
Hi friends, I'm having a problem to write a file and read the same file in sequence. The file size is 4 GB. I tried fstream for both and as second option ofstream and ifstream. I'm reading just the first 2 lines of the file. If I read those in … | |
I have a file pointer which was assigned in main. In the main, I just open a file to write stuff to it. I want to pass the file pointer to several functions so that they can write to the file. In the fucntion declaration I just add: somefunc(FILE *file) … | |
I am making a video recording program that takes input from a v4l2 webcam and outputs to an avi file. Using gstreamer in c, I have got most of the program to work, and the file is created. I can get the pipeline to display the video to the screen, … | |
Hi, it's weird coming from me seeking help with this but I've a little problem at my hand... I have a 320GB External HDD which has been working fine for almost a year now if I remembered but recently I try to copy some files from my external with error … | |
I am confused........... I have made a project . No problem in localhost but whenever I try to execute in my domain server it shows : Warning: include_once(body/login/logIn.php) [function.include-once]: failed to open stream: No such file or directory in /mounted-storage/home36c/sub003/sc29343-BHKZ/progekt.com.utpal/helora/body.php on line 68 You can check : [url]http://utpal.progekt.com/helora[/url] I have … | |
I have a windows service on a server which accesses a folder and database which is on different server. i was told to create an .ini file and add the settings here. so i have to add the path to the folder and database in .ini file, correct? is there … ![]() | |
I have problem with creating jar file want to create jar file with mysql connector i include the mysql connector in manifest file but still it five me error like: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) … | |
Hi I am making a banking system in c++ but getting a problem I am not sharp in programmin if you can help then thanks [CODE]//*************************************************************** // HEADER FILE USED IN PROJECT //**************************************************************** #include<iostream> #include<conio.h> #include<stdio.h> #include<process.h> #include<fstream> #include<ctype.h> //*************************************************************** // CLASS USED IN PROJECT //**************************************************************** using namespace std; class … | |
Hi, I am trying to change this program to compile in g++ compiler in terminal in linux. I have reached a point where I am stuck. I would really appreciate some help. I am getting the following errors: test@linux:~/signalgenerator> g++ -o audio audio_backup.cpp -lasound audio_backup.cpp: In function ‘int main(int, char**)’: … | |
Hi friends I have a project with C#.when I run my project's exe and I want to run one part of my project,I have this error: System.IO.FileNotFoundException: Could not load file or assembly 'Interop.DTS, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. File … ![]() | |
![]() | Warning: copy() [function.copy]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/oeaivcom:/usr/lib/php:/usr/local/lib/php:/tmp) I am trying to create a form that someone can submit a file to an ftp location. I found a script online and it is giving me this error. Could anyone point me in the … |
Hi everyone.. I am trying to write a perl code which appends a text file after taking two inputs from the user. It saves the file in tab delimited format. I have the input text file attached here. Now I want the file to check if the user given input … | |
Hi guys, This one is a bit out of left field but someone somewhere must have tried this before. Does anyone out there know how to control the width of the filepath textbox in a fileupload control? I have a form with a comment textbox, a filetype dropdown and a … | |
I am reading a text file line by line using StreamReader.Readline(). After reading a line i have to check whether some fields of the line which is read are present in the rest of the file or not. What i am doing is that after reading a line from the … | |
Hey All I have made this upload script but everytime I tried to execute it, it fails and gives me this error. [URL="http://www.daniweb.com/forums/attachment.php?attachmentid=21701&stc=1&d=1311399235"]http://www.daniweb.com/forums/attachment.php?attachmentid=21701&stc=1&d=1311399235[/URL] This is my code in the Upload.php File: [CODE] <form enctype='multipart/form-data' action='Upload_File.php' method='POST'> Please choose a file: <input name='myfile' type='file' /><br /> <input type='submit' name='submit' value='Upload' /> … | |
Hey very simple problem. I've been searching the site to see if I did anything wrong and I had to fail because I still get the wrong results (semantic error). Problem #1: Every time I use fopen with the "w" (or write) mode the file with whatever name given is … | |
I have written a code which uses RXTX Serial API for communication. Now I want to distribute a jar file for my program. The problem is that since I have used RXTX Serial API jar & dll files for this needs to be copied in java home. I wrote a … | |
I am using VB6 i am create Crystal Report File at run time using CreateReportOnRuntimeDS "p2smon.dll" API function. this function will connect the .ttx file to the report. now i want to connect another one. i am creating .ttx file is at run time using CreateFieldDefFile "p2smon.dll" API function. now … | |
Hi every one,pls am trying to copy the content of my fileupload unto an hidden text box so that users will not have to copy it manually,but it just copies the file name wit exception of the path.I need the path name but in IE9,firefox,opera all i get is the … | |
hey there, I am trying to write a simple script that lets me remove lines from a file. I have an elementet.txt file that contains one-word lines. I thought that if I put the file lines onto an array, and then put back the array elements back on file, excluding … | |
[B]Beginner's Guide to C++0x: The Big Five - Implementing a Resource-holding RAII Class[/B] This tutorial will show how to implement a [I]resource-holding class[/I] showing practical use of [I]C++0x features[/I]. A resource-holding class is any class which holds, with its data members, a resource which could include: [LIST] [*]dynamically allocated memory … | |
How to do checking before importing the csv file by php? I have a csv file which contains the information with the columns (id, name, telephone , email) and have the database with the same columns. I have the php file which can import the csv into the database. Now,i … | |
when uploading an image to the website i get the following error message: [CODE] Server Error in '/' Application. A generic error occurred in GDI+. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and … | |
Hi, I'm stuck... I'm writing a program that creates a data file then populates the file with 500 random integers both positive and negative. The problem I'm having is reading the integers from the file and storing them into three arrays for processing neg[],posEven[],and posOdd[]. I really just need a … | |
Hello all and thank you in advance. I am building a website (AP.NET 3.5 and C#) that I put a File Uploader on using the "FileUpload". I then created a Button that has the following code in it: String savePath = @"DESTINATION_PATH"; if (FileUpload1.HasFile) { String fileName = FileUpload1.FileName; savePath … ![]() | |
I tried to store several data an cant achieve it: [CODE] #include <iostream> #include <string.h> #include <stdlib.h.> #include <stdio.h> #include "estructura.h" void guardar_cliente(cliente x) { FILE*f; f= fopen("data.txt", "w"); fwrite(&x, sizeof(x), 1, f); fclose(f); } [/CODE] I dont know whats wrong im using another cpp file and a header file … | |
Here's my dilema. My client program is going to request a certain file from my server program, so the server program needs to send the size of the file it requests and then the file itself by using a Socket all in one go. My client will then read the … | |
![]() | Hi folks, I am trying to create a function that adds comments to a text file. If the file exists, the comments are added to it. If the file doesn't exist, it is created then the comments are added to it. If there are any problems, an error message is … ![]() |
Hi, I am trying to read two strings per line and store them in strings so i can use them in my program.for example if this is my input file: [CODE]cat:yellow dog:blue chicken:red[/CODE] i wan to store cat as animal1 string dog as animal2 string and yellow as colour1 string … | |
This is a continuation of problems with the program posted here: [URL="http://www.daniweb.com/software-development/python/threads/372311"]http://www.daniweb.com/software-development/python/threads/372311[/URL] I started thinking there was something wrong with my statement to open the csv file, using the reader. [CODE]reader = csv.reader(open('C:/Documents and Settings/VPC.VPC-SCALA.000/Desktop/RAH 7-11-11/RH/Projected Cash Goals Template.csv', 'rb')) [/CODE] I put a test statement above the open statement … | |
Hi, story goes... I need to process a timesheet - I want to use a csv file of the spreadsheet, so I was hoping to plug in the path to what Google said was a CSV output of a spreadsheet... [url]https://spreadsheets0.google.com/spreadsheet/pub?hl=en_US&hl=en_US&key=0AhhCntOrEg9FdF9PZkIwY08tZTdwd3lkYkJFNEtkMkE&single=true&gid=1&output=csv[/url] Unfortunately if you click on that link, it prompts … | |
Hi, i have written this block of code which deletes a record from a file, it works to some extent. i can delete existing records but at the second deletion and i display the file contents, i get some gibberish. also i cannot delete records which i have added to … | |
I'm new to web develop, just started coding my own page I have the need for hiding the user's ip so I found the following code just trying to figure out how to use it on my website what will be showing on the screen is a hyperlink like this … | |
hi, i have this code [CODE]#include <fstream.h> #include<iostream> using namespace std; int main (char argc) { for(;;) { fstream file; file.open("file.txt"); cout << "Enter new high score." << endl; double n2; cin >> n2; double n1; file >> n1; if(n1 > n2) { cout << "You didn't beat the high … | |
Hi, I've not been successful looking for a solution to my problem. What I need is to password protect a directory. I could use htaccess, but the user doesn't want a pop-up login window. He wants to start on a page with a form with the username and password fields. … | |
Hi I was created one web application. In which i am using the ajax control asyncfileupload file uploader in update panel. Upload file correctly but when i refresh the page then double this file is uploaded.. how to fix this problem in asp.net? please help me how to postback the … | |
Some simple php code; [code=php] $dir = '../images/'; $file = $_GET['name']; // Last, First M. "nickname" $f = $dir.$file; list($width, $height, $type, $attr) = getimagesize($f); echo $f."<br />"; echo "width ".$width."<br />"; echo "<img src='$f' $attr title='getimagesize example' />"; [/code] while the last echo line displays the image correctly (and … ![]() | |
hello all i am doing a copy operation from a file to another file.in source file i have 13 digit no but in destination file there is only 12 digit copied.code is as follows. [CODE]public void createOriganalFile() { try { File ObjInputFile1 = new File(strFilepath + "_dummy.txt"); File ObjOutputFile1 = … ![]() | |
Hi I am coding for cross-page posting using PostBackUrl property of the button on Page1. But the Button when clicked does not postbacks to the target page, simply flashes up Page1. When digged inside the html resource of the page1, I found the WebResource.axd file as a script holder When … | |
I have created a program in ASP.Net and VB.Net that allows users to loging and download and upload files to and from an FTP site. I have so far got it to the point where the user can download files and when they go to the download page, a listbox … | |
Hi all, I am a student and would like to know where i can get a free download of matlab. Is that possible anywhere? | |
Hi there; There is such a simple code here, and with the propotion of its simplicity, it drives me crazy. Here is the code: [CODE] private void fillArrayLists(String fileName,ArrayList <String> list) { try{ // Open the file that is the first // command line parameter FileInputStream fstream = new FileInputStream(fileName); … | |
Hello to everyone and wish for a Happy New Year. I have an html code from which I want to execute various php files (with various parameters). Say the html file is called htmlcode.html. Say one php file is called phpfile1.php and a second php file called phpfile2.php Everything works … |
The End.