7,373 Topics

Member Avatar for
Member Avatar for ba.accounts

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 …

Member Avatar for JeffGrigg
0
294
Member Avatar for DesignGhosts

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 …

Member Avatar for DesignGhosts
0
239
Member Avatar for rooneey10

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 …

Member Avatar for codeorder
0
105
Member Avatar for get connected

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 …

Member Avatar for Reverend Jim
0
2K
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
108
Member Avatar for abhinavM

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 …

Member Avatar for stultuske
0
1K
Member Avatar for Kerlix

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 …

Member Avatar for Caligulaminus
0
312
Member Avatar for sadsdw

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 …

Member Avatar for sadsdw
0
258
Member Avatar for jobs

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) …

Member Avatar for Narue
0
1K
Member Avatar for iamthesgt

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, …

0
169
Member Avatar for flagstar

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 …

Member Avatar for flagstar
0
407
Member Avatar for utpal23

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 …

Member Avatar for ko ko
0
301
Member Avatar for abc88

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 …

Member Avatar for Huntondoom
0
88
Member Avatar for Pravinrasal

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) …

Member Avatar for NormR1
0
155
Member Avatar for Muhammadlodhi

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 …

Member Avatar for Salem
0
970
Member Avatar for ogopa100

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**)’: …

Member Avatar for Salem
0
268
Member Avatar for Dajer

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 …

Member Avatar for Huntondoom
0
162
Member Avatar for megachip04

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 …

Member Avatar for Insensus
0
580
Member Avatar for ghosh22

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 …

Member Avatar for ghosh22
0
432
Member Avatar for G_Waddell

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 …

Member Avatar for Netcode
0
758
Member Avatar for abc88

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 …

Member Avatar for san-biegwenja
0
554
Member Avatar for Alternativeguy

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' /> …

Member Avatar for ddymacek
0
99
Member Avatar for vincenzorm117

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 …

Member Avatar for vincenzorm117
0
1K
Member Avatar for gunjannigam

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 …

Member Avatar for NormR1
0
252
Member Avatar for piyushdhamecha

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 …

Member Avatar for debasisdas
0
389
Member Avatar for emmyt

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 …

Member Avatar for G_Waddell
0
145
Member Avatar for bibiki

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 …

Member Avatar for bibiki
0
124
Member Avatar for mike_2000_17

[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 …

17
3K
Member Avatar for cliffcc

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 …

Member Avatar for cliffcc
0
3K
Member Avatar for barriegrant1

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 …

Member Avatar for barriegrant1
0
2K
Member Avatar for xxlt3xx

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 …

Member Avatar for xxlt3xx
0
172
Member Avatar for 184100

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 …

Member Avatar for stbuchok
0
185
Member Avatar for rayden150

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 …

Member Avatar for mike_2000_17
0
256
Member Avatar for WildBamaBoy

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 …

Member Avatar for WildBamaBoy
0
409
Member Avatar for Zagga

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 …

Member Avatar for Zagga
0
181
Member Avatar for milan2011

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 …

Member Avatar for Lyandor
0
170
Member Avatar for rhuffman8

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 …

Member Avatar for rhuffman8
0
353
Member Avatar for lifeworks

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 …

Member Avatar for almostbob
0
195
Member Avatar for abdul04

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 …

0
53
Member Avatar for bigwhiteegg

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 …

0
85
Member Avatar for thecoolman5

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 …

Member Avatar for thecoolman5
0
1K
Member Avatar for webdi

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. …

Member Avatar for Stefano Mtangoo
0
203
Member Avatar for shailaja mohite

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 …

Member Avatar for crishlay
0
286
Member Avatar for bob on whidbey

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 …

Member Avatar for diafol
0
3K
Member Avatar for manish250

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 = …

Member Avatar for hfx642
0
201
Member Avatar for Mahesha999

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 …

0
92
Member Avatar for dwinn

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 …

Member Avatar for dwinn
0
160
Member Avatar for gendler.max

Hi all, I am a student and would like to know where i can get a free download of matlab. Is that possible anywhere?

Member Avatar for shiva07
0
141
Member Avatar for varoluscu_prens

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); …

Member Avatar for varoluscu_prens
0
179
Member Avatar for Kostas Theof

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 …

Member Avatar for yahya al salman
0
3K

The End.