6,015 Topics

Member Avatar for
Member Avatar for yun

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 …

Member Avatar for Ancient Dragon
0
178
Member Avatar for memegha123

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 …

Member Avatar for memegha123
0
124
Member Avatar for gotm

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 …

0
83
Member Avatar for walter clark

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 …

Member Avatar for walter clark
0
122
Member Avatar for mvchandoo

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 …

Member Avatar for mvchandoo
0
101
Member Avatar for gotm

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

Member Avatar for BestJewSinceJC
0
191
Member Avatar for grvs

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 …

Member Avatar for grvs
0
2K
Member Avatar for solris

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

Member Avatar for javaAddict
0
100
Member Avatar for AlexRamallo

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 …

Member Avatar for Ancient Dragon
0
230
Member Avatar for vikingGirl

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 …

Member Avatar for freshfitz
0
90
Member Avatar for Niner710

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 …

0
46
Member Avatar for lewigi2012

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

Member Avatar for FlamingClaw
0
79
Member Avatar for lexusdominus

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 …

Member Avatar for siddhant3s
0
120
Member Avatar for gingank

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

0
58
Member Avatar for gingank

Can anyone help me with the code why it is wrong . What Should i need to do to correct. Thank for your help . Pls help me [code=php]if (is_uploaded_file($fileatt3)) { $file = fopen($fileatt3,'rb'); $data = fread($file,filesize($fileatt3)); fclose($file); $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; $data = chunk_split(base64_encode($data)); $body .= "--{$mime_boundary}\n" …

Member Avatar for andre.vanzuydam
0
83
Member Avatar for Niner710

Hi, I am a newbie to C++ and want to know how to parse thru a binary file. I am having some trouble with some simple code. I have a sample binary file(test.bdb) that has "0069 0045 0089 0090" in the file. Here is my code for the file. [code] …

Member Avatar for Dave Sinkula
0
2K
Member Avatar for sijithjp

hi plz help. Trying since 1 week. acwl1 line we james line rx sijith fff xw nisha nnn w /sijith line r /Arjun line w vineeth line r acls2 faculty x arrr line2 w Rahul line3 wx Arjun line1 m /Tom line wr ac01l2 lineN w aclM1 line1 rw Ram …

Member Avatar for WaltP
0
86
Member Avatar for hmajidy2001

Hi PHP community. I have a PHP script on Linux (CentOS 5.2) which produces a "failed to open stream: No such file or directory" which I am out of ideas on how to solve. I am on the verge of reverting to Perl. The line generating the code is: [icode]$fh2 …

Member Avatar for hmajidy2001
0
4K
Member Avatar for Raouldukey

I am using vb.net 2005 (express) and can't quite figure out how to do this. I have an application that reads in a bunch of data from a file into the appropriate variable arrays like I want. I used a simple solution that I found here on DaniWeb to read …

Member Avatar for Raouldukey
0
266
Member Avatar for andy126

Hi, I'm trying to read data from a text file and store it into an array. I know this issue has been dealt with earlier, but none of those threads seem to be helpful in this case. Sorry in advance if I missed a relevant post. The data in the …

Member Avatar for jephthah
0
163
Member Avatar for cs_tx_usa

Hi all, I am trying to make a program in VB .NET that has two "browse" bottons, two textboxes which should show the full path of the files to be selected, one "Save As" button, one textbox that should show the file's full path where to be saved in, an …

Member Avatar for tathumani
0
264
Member Avatar for thebluestar

I had 1 exercise: read data form file then add into TREE. I read data in the file into an array, then add array into TREE, here is my solution but it does not work properly I know that data in array seq[] will be erased after ReadFile() function but …

Member Avatar for jephthah
0
106
Member Avatar for beaute

Hello, I'm trying to read dictionary words from a file and store the output in a struct element of type unsigned char *. I keep getting a bunch of memory related errors and segmentation faults which Im sure are totally related to me trying to access something that's not really …

Member Avatar for csurfer
0
144
Member Avatar for NickMalone85

I've been browsing the web for a while looking for an answer to this but I can't seem to find it. I created a .resx file in one of my DLL files that has a bunch of images stored on it. In this DLL I'm using an extended ImageManager (CustomImageManager) …

Member Avatar for sknake
0
76
Member Avatar for NeoKyrgyz

Hi, guy I've created an animation (swf file) using AS3 and FlashDevelop. I'm able to compile and play it in FlashDevelop but when I open it in any browser (IE, Firefox, Chrome) I just see the background color and that's it. (I've flash player plugin installed on browsers). What my …

Member Avatar for NeoKyrgyz
0
275
Member Avatar for obscured47

Hi, I was wondering if there is a nice way to have the System.Web.Cache in sync with a file. I'm looking to keep a mapping object (an array of objects with a couple of properties) in cache and also in a file. I want to get 2 things out of …

0
50
Member Avatar for yun

I want to read and write string from file, - Dont want to overwrite on the existing file - Where to put the read file code as in Constructor if file is not created then it will generate error. help me to solve this issue. [code=cplusplus] class Security{ private: Map<string>password; …

Member Avatar for Stinomus
0
243
Member Avatar for seemant_sun
Member Avatar for Ancient Dragon
0
137
Member Avatar for MasterGoGo

Hi guys, I have a problem. Im trying to read from a file which contains one, two, three, four. The output I get is one two three four But I want to make it read every other line. one three etc. How would I go about that? [CODE] import java.util.Scanner; …

Member Avatar for Ezzaral
0
110
Member Avatar for bjanbkboi

I'm trying to read a file into a vector using structure...[CODE]#include <fstream> #include <iostream> #include <vector> #include <cstdlib> using namespace std; struct StudentRecord { int ID; char FirstName[30]; char LastName[30]; char Grade[1]; }; void read_file(char FileName[20],vector<StudentRecord> &students) { ifstream Students(FileName, ios::in); char S_ID[10]; /* char FName[30]; char LName[30]; char S_Grade[1];*/ …

Member Avatar for ArkM
1
108
Member Avatar for saptaparni

how do i generate a .html file using java? i need 2 read from a file file and display an applet in a web browser. So i need to include the main() and cannot run an external .html file. Please help.

Member Avatar for kvprajapati
0
62
Member Avatar for Summer_Intern

Hello, I am trying to embed a html file (a report from sql) in to a word document in a particular location. I am trying to get this done using the Office Interop. 1) How can I embed a html file in to a word document ? 2) How can …

Member Avatar for Summer_Intern
0
2K
Member Avatar for gagan22

Hi all, Yesterday i was working in which i need some application in which we can upload image file in our system. That is working very well. But now i want to upload a notepad text file or ms-word file from system to server. Means I want to upload a …

Member Avatar for msnmnk
1
875
Member Avatar for JohnPhilipps

Good morning, I am quite new at java and in the learning process. I have a log file with the following data contained in it: mai 4 03:26:53 pcjournal Dock[345]: Corrupt JPEG data: premature end of data segment mai 4 03:26:53 pcbookscuba [0x1-0xa01a].com.apple.dock[345]: Tue Jun 2 03:26:53 macbookscuba.local Dock[215] <Error>: …

Member Avatar for JohnPhilipps
1
255
Member Avatar for travis67

Hi, I am developing one application in c#, where I have to manage file transfer between my applications. The applications can communicate sending strings to each other. The idea is to read file and put that in one string, which can be sent over the network using streams. Of course, …

Member Avatar for travis67
0
87
Member Avatar for hofsoc20

I want to upload a file from c#.net app to a servlet. I am using webclient.UploadFile() and I have also added some data to the uri (see postData below). Everything seems to work ok except webclient seems to be calling the post and the get within the servlet. Therefore my …

0
61
Member Avatar for sravan953

I have a file, called 'html.html', which contains 'open_skype' in the first line and in the second line it contains the location of the file. Now, what I want to do is, make a function read the first line and then the second line should be read separately....if you don't …

Member Avatar for vegaseat
0
8K
Member Avatar for mingke

Hi... I've been trying to make a program where the input is txt file, and the output will be saved in txt file. But, I keep getting error Message. My code looks like this: [code] #include <stdlib.h> #include <stdio.h> int main (){ int i,j; float H [100][100]; FILE*in; in=fopen("0.txt","rt"); FILE*out; …

Member Avatar for mingke
0
202
Member Avatar for connormcleod

hello, I am working on a little database program in C++ that writes to a text file, saves, and then reads the text file into array's, but i'm not real sure how to go about converting the information in the text file back into arrays. the text file looks like …

Member Avatar for kvprajapati
0
9K
Member Avatar for fatbob

Hi all I am new to programming and python and am having trouble reading particular strings from a text file and writing them out to a separate file. The file has a large number of lines, has the following format and is interspersed with signature sentences i don't need: subdoc="Book=2:chapter=1" …

0
71
Member Avatar for headacheinC

Hi all, I just get stuck with this kind of simple problem. Such a novice i am. Could you help me guys.:$ I try to built the code and for the first procedure i should open first the file. The file which i should opened its depend on the input …

Member Avatar for headacheinC
0
136
Member Avatar for swanside

Hello. I have a MYSQL database and I receive CSV files throughout the day. At present I have to open up my database and import the CSV file. Is there a exe file that can run so the CSV file can be imported as and when it arrives on the …

Member Avatar for swanside
0
110
Member Avatar for itshibu

I tried to write a program that can open files from the server. But the shared folder in the Win2003 server is password protected. i tried the following code [CODE]System.Diagnostics.Process.Start("net.exe", "use K: \\Server\URI\path\here /USER:username password" ) Dim p = New System.Diagnostics.Process p.Start("k:\" & Filename) System.Diagnostics.Process.Start("net.exe", "use /delete K:" )[/CODE] And …

0
59
Member Avatar for brashli

I am taking a text file and trying to do calculations with it where the line in the file looks like this: 'Corn For Grain', 'Irrigated', '1970', 'Colorado', 'Chaffee', '8', '10', '15', '11199199', '1', '', '100 acres', '75 bushel', '7500 bushel', '', '' It has commas because it came from …

Member Avatar for The_Kernel
0
142
Member Avatar for jonnytabpni

Hi Folks, I'm using this code I found online to decompress a large file. It works fine when I try it with a small file i.e. a 5MB mp3 (1.7MB compressed) but when I try and use it with a 250MB file (27MB compressed), the newly created output file is …

Member Avatar for Tekmaven
0
170
Member Avatar for gujjar19

I have a subtitle file and I want to extract timestamps from the file. e.g. from below lines: [QUOTE] <SYNC Start=106377><P Class=ENCC> Hey... <SYNC Start=107350><P Class=ENCC> close the door. [/QUOTE] I want to extract timestamps '106377' and '107350' and append them with the name of the file including .bmp at …

Member Avatar for gujjar19
0
83
Member Avatar for HITMANOF44th

i want to import a file and then use the items in variables i have the file imported i also turn it into chunks with explode now i tried preg_replace to get rid of certain charaters i need to get rid of " character from the file then split it …

Member Avatar for HITMANOF44th
0
106
Member Avatar for Josh Connerty

Hey guys, Basicly my nephew has just been born and I need to put soem images on my site for my grand parents (the great grad parents) to see. I can upload smaller galleries and all is well but for some reason if I upload a larger archive, for example …

Member Avatar for Josh Connerty
0
127
Member Avatar for pradeepktg

Hi All, Am new to this forum and really happy to share my programming thoughts to you all. It would be great help if some body gives me the the solution for the below. Case: When i select a file (through html file control) from local machine, before uploading i …

Member Avatar for pradeepktg
0
152
Member Avatar for defender_

I am using this code for simply reading from a text file but i want to put file pointer at the begining again when it reaches to the end of file. But my code below is not working. u can ignore extra bits of my code... like header files... :) …

Member Avatar for ArkM
0
108

The End.