6,015 Topics

Member Avatar for
Member Avatar for libathos

I want to create a class which will be responsible for reading an input file and then filling up my other classes...But i do not know how to begin...any ideas?

Member Avatar for libathos
0
109
Member Avatar for Ritesht93

My teacher gave me a program which will maintain the attendance of some class daily , i have made it fully , i use eclispe IDE -JAVA SE , there are a lot of swing components in it like textfields,checkboxes,JList etc so there are Listener classes for the components. constructor …

Member Avatar for Ritesht93
0
205
Member Avatar for firoz.raj

When i tried to open any webpage just like live.com in the internet explorer.i got error the instruction at "0x42f649b2" referenced memory at "ox8a2edfe6".the memory could not be read. click ok to terminate the program.click on cancel to debug the program.Kindly let me know the idea.Any help would be highly …

Member Avatar for jolin_ee
0
194
Member Avatar for rolfhorror

load array from file into variables for login ? I have an external file with some userpreference called userprefs.txt which contains values on several lines (array values). In another page I have this code below(part of it), trying to get the `$realUser` and `$realPass` values to be parsed from `$userPrefs[0]` …

Member Avatar for rolfhorror
0
132
Member Avatar for neo2nate

please help I want to reading .wav file and putting ito inot the array to do some manipulations.... here is the bit of the code, I am trying to read the file called yes1.wav and putting it into the array and it returining junk...sometime cannot open the fp1 = fopen( …

Member Avatar for Trentacle
0
627
Member Avatar for phobos666

Hi, I need to open a file containing string values one below the other and display them. I'm able to open the file but there is some error while displaying them. Below is my code, kindly guide me to my mistake. [code=c] FILE *fp; char airfoil[6]; fp=fopen("/cygdrive/d/airfoil.txt","r"); if(fp!=NULL) { while …

Member Avatar for vinitmittal2008
0
214
Member Avatar for omkar1987

WHEN I TRY TO OPEN FILE IN APPEND MODE ,IT CREATES THE FILE BUT IT SAYS "IN-VALID ENCODING " ALONG WITH THE FILE-NAME ........I HAVE PASSED THE ARRAY OF STRINGS CORRECTLY IN string moreover the strings in "string" are sorted .....any string in "string" is made up of only 4 …

Member Avatar for Narue
0
173
Member Avatar for lcx88

I need help in file handling. The problem is... In a text file.. consists of (5) five student load with their...(subject,description,units,teacher,room,time, and day).. I did the first student load.. but I could hardly proceed on the next student loads.. I easily did this in Java.. but on C++ i could …

Member Avatar for Ancient Dragon
0
133
Member Avatar for Abinaya Infy

Hi all, I have two questions. 1) How to refresh a page in jsp even if the javascript is not supported by the browser or if it is disabled? 2) How to get the path of the window in js? Thanks in advance.

Member Avatar for Shanti C
0
122
Member Avatar for jfortiv

Hello, I'm developing an org chart for my company and I want to spend some effort to make it interactive. I'm utilizing the Google Visualization API Org Chart tool and writing JavaScript to extend the basic functionality provided by that framework. This is the general plan that I've devised so …

Member Avatar for jfortiv
0
115
Member Avatar for Don_k

Hey guys using Linux(C) using POSIX API system calls read,write, open etc. I can open,read,write to a file and copy its contents to an output file. How would I go about copying more than one file to an output file using related system calls only. I currently have: [code=c]filein = …

Member Avatar for Don_k
0
224
Member Avatar for nitins60

[CODE] import java.io.*; import java.io.IOException; public class ReadWriteFile{ static File f1 = new File("C:\\source.txt"); static File f2 = new File("C:\\dest.txt"); public String readFile() throws IOException { String msg = ""; FileReader fr = new FileReader(f1); BufferedReader br = new BufferedReader(fr); msg = br.readLine(); System.out.println(msg); fr.close(); return msg; } public void …

Member Avatar for masijade
0
167
Member Avatar for abelingaw

I'm having this problem regarding my Backup code. I get an error saying "Permission Denied". Here's my code: [CODE] Public Sub DBBackup() Dim fsys As New FileSystemObject Dim myfile As File Dim isTrue As String Dim isFalse As String Set myfile = fsys.GetFile(App.Path & "\Database.mdb") 'Create Backup folder if not …

Member Avatar for AndreRet
0
273
Member Avatar for tammy12w

ok so every time i write this f=open('file.html') p=f.read() this come out and i do not understand it help!! p=f.read() File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 8171: ordinal not in range(128) i am trying to open a .html …

Member Avatar for richieking
0
8K
Member Avatar for by_stander

Hey everyone, I have a Matlab code that parses data from a csv file, performs some calculations on the data, and spits it back out into a new csv file. the new csv file contains all the data from the original file, with the new calculations appended on at the …

Member Avatar for jonsca
0
237
Member Avatar for yatman

I have a function below which is supposed to read from a continuous updating file...by another program. for this reason I used a fileptr int to keep track of the last known good read so this index value is updating correctly but it is not being used by getline. and …

Member Avatar for vijayan121
0
160
Member Avatar for masamune

Hello, I'm having little trouble solving this question correctly. first of all, I keep failing at testing most of these methods, and I don't know where did i go wrong for them not to work. thus, i'm not able to know if it's solved correctly or not. Question is: 1.CountNumbers …

Member Avatar for JamesCherrill
0
230
Member Avatar for -ordi-

[CODE]sis = file("file.sis", "r") val = file("file.val", "wt") n = int(sis.readline().strip()) la = sis.readline().strip() alist = [] for i in xrange(n): line = sis.readline().strip() alist.append(line.split()) for i in xrange(n): print map(int, alist[i][0].split(":")), map(int, alist[i][1].split(":")) [/CODE] In: [CODE] 07:34 08:55 10 20 08:25 09:00 10 20 [/CODE] Out: [CODE] 08:25 09:00 …

Member Avatar for TrustyTony
0
140
Member Avatar for queen11

can someone help me or give me codes on how to save images into database i'm a new user of java.

0
70
Member Avatar for Bliksempie

Hi everyone, I have a very large CSV file. 51427 lines to be exact. I need to import the entire file into a MySQL database, however, the script times out due to server settings and slow connection (and maybe other reasons that I am not aware of). So - I …

Member Avatar for pakkupakku
0
1K
Member Avatar for phpDave

Hi, I have a script that uploads images into MySQL but I am have trouble resizing the image on upload. Can anyone help? Here is my code so far: [CODE]<?php require_once('Connections/connAdmin.php'); ?> <?php //file properties $file = $_FILES['content']['tmp_name']; if (!isset($file)) echo "please select an image."; else { $content = addslashes …

Member Avatar for mbhanley
0
87
Member Avatar for ajst

Hi Guys, I'm basicly reading from a CSV File that im using to store data. Now when I read from the CSV file i want to load the data to fill in the parameters eg. the csv file contains name,address,age,favColor. so when i load the file i want it to …

Member Avatar for jon.kiparsky
0
139
Member Avatar for dballar1

I am having some trouble verifying the given data for 'user' against what is already in the users.txt file. An example of a line in the text file is... ('Ralph', '1a1dc91c907325c69271ddf0c944bc72') Where 'Ralph' is what I want to compare against the users input for 'user'. Here is my code so …

Member Avatar for TrustyTony
0
332
Member Avatar for hearthand

Basics are: Another area of my program takes in strokes and then uses the recogniser to interpret those strokes into a recognise result. The result of this conversion is saved and is accessible. This is the string part of my question. On another screen I have a panel which takes …

Member Avatar for hearthand
0
203
Member Avatar for omkar1987

i trying to to open a text-file in read mode and passing that file pointer to a function which will extract the text from that file pointer .... but every time i build and run the program i get the segmentation fault error at the start of the "loadtoFile" definition …

Member Avatar for WaltP
0
124
Member Avatar for mbehnaam

[B]Hi, I am beginner in Python and I'm looking for a method to write to a file by using Index. This is my program:[/B] ************************************************************** infile = open("land1.txt","r") outfile = open('out.txt', 'w') text = infile.read() infile.close() search = "<CgPoint" found=text.find(search) while found > -1: print search, "found at location", found …

Member Avatar for TrustyTony
0
172
Member Avatar for Taggize

I'm finding issue with my current program. I built the program so that it reads an input code from a file and it is also supposed to display only the code's appropriate salary. However, for some reason, everything I've tried only results in all the salaries being pulled together, not …

Member Avatar for ravenous
0
179
Member Avatar for petercpwong

I was just wondering if it was possible to upload an image using XHR rather than a hidden iframe? If so, do all modern browsers support it?

Member Avatar for mehdi991
0
314
Member Avatar for aviavyne

Hello, i have a project which requires that i work with three files. two files are text and one file is .dat Currently I have been successful at creating the dat and one of the texts. The project is a bit menu driven and is about stocks, when the program …

Member Avatar for WaltP
0
189
Member Avatar for Red20XX

Hi everyone, I am doing a C++ project for school in the UNIX lab that requires inheritance. My main program is calculating linear regression for some plotted points and I'm inheriting a linear system solver from another program. The linear system solver is suppose to print the solved values to …

Member Avatar for Red20XX
0
351
Member Avatar for garevn

Hello, i am new in c programming it is just the second month i i deal with. I am really confusing about what i have to do with this exercise pls don't lough on me I hope for some help. That's what i have to do.. I have to modify …

Member Avatar for WaltP
0
653
Member Avatar for waleed.makarem

Dear All , The question is quite simple for all of you . I have a binary file . A description for this file says that : "first 2 bytes in the header is the number of records" I have opened this file and loaded it into bytes by this …

Member Avatar for waleed.makarem
0
234
Member Avatar for garevn

Hello, i am new in c programming it is just the second month i i deal with. I am really confusing about what i have to do with this exercise pls don't lough on me :( I hope for some help. That's what i have to do.. I have to …

Member Avatar for Trentacle
0
344
Member Avatar for dark3lf

Hello, I am writing a program in python that detects inserted usb drives using dbus in linux and copies all of the files from it over to a dir on the computer. Here's my code: [CODE] import dbus import gobject import shutil import os import subprocess import time def move_files(pth): …

Member Avatar for dark3lf
2
196
Member Avatar for Siberian

I recently inserted my USB Thumb Drive into my computer and found one of the folders and all the files within the folder with file names such as this $5[]%6$3$@#. I knew there was something wrong, so I extracted and reinserted the key again, this time I let Windows7 do …

Member Avatar for Siberian
0
170
Member Avatar for ChEeZeBaLL

I'm new to C programming and I am trying to write a simple ID3 tag editor for mp3s. An id3v1 tag is the last 128 bytes of the file, with 30 characters for the artist, 30, for the title, etc... So far I have written this program which saves each …

Member Avatar for Dervish1
0
1K
Member Avatar for mocha8688

I have a text file to be read "Mary had a little lamb its fleece was white as snow and everywhere that Mary went, the lamb was sure to go!". The program should do the following: 1. count number of words in file 2. print all words, one per line …

Member Avatar for WaltP
0
145
Member Avatar for yuri1969

Howdy, I need to print given path to a file. The problem is that my app is platform independent -> I can get a Win32 style path: [CODE]C:\foo\bar.dat[/CODE]. The problem is with printing single backslashes '' -> single char converts to "\char" style. I need to convert it somehow to …

Member Avatar for yuri1969
0
157
Member Avatar for shakssage

I'm trying to move functions that I have created in my .h files into the .cpp files of my winForm application. I don't really know how to get this to work. Example code in .h: [CODE]void loadCustomerDetails() { SQLiteConnection^ ObjConnection = gcnew SQLiteConnection("Data Source=SwiftService.db3;"); SQLiteCommand^ ObjCommand = gcnew SQLiteCommand("SELECT * …

Member Avatar for jonsca
0
433
Member Avatar for bufospro

Hi all, I want to read a file. The file is like that : 20 20 1 5 6 20 21 1 2 3 21 22 2 4 6 20 20 2 3 5 20 21 6 5 2 21 22 1 6 7 .... and I would like every …

Member Avatar for bufospro
0
123
Member Avatar for JeremyJ

Hi, I need to download URL's to a file using C++ code. Does anyone know of a library, compatible with Windows, that will do this? I know about CURL, but after spending days trying to configure LibCurl using Cygwin I'm ready to give up. A friend has been able to …

Member Avatar for JeremyJ
0
930
Member Avatar for hmortensen

Hi, I'm waiting for a file, and then trying to delete it. This is what I have. [CODE] repeat file, msg = io.open("Done.txt", "r") until file file:close() os.remove("Done.txt") dbg=io.open("DEBUG.txt", "a+") dbg:write(file .. "|" .. msg); dbg:write("\n") dbg:close() [/CODE] It does wait for the file to be created (so I know …

0
45
Member Avatar for Eagles36

I am trying to read a txt file into a binary tree. I have the computer create the binary tree from the txt file. Once it adds to the binary it learns what you add. I got it to do the second portion I cant get it read it in …

Member Avatar for daviddoria
0
100
Member Avatar for SgtMe

I have made a python program which will create an OpenGL and render a teapot (GLUT standard teapot) with a shader that I specify. The shader is specified as follows: [LIST] [*]I have a file called "index.ini" which contains the file paths to a vertex shader and pixel shader file …

Member Avatar for SgtMe
0
484
Member Avatar for liran

( It is only in Python 3 ! ) ( The commands to operate this file are at Linux ! : I want to read a file, but it has to be through stdin ( In linux, with "< filename" ) ! And I want to write the same file …

Member Avatar for Gribouillis
0
2K
Member Avatar for Plastix!!

how can one read from a file (.dat or .txt) using and linked list. ie. file 1 -> after reading from this list then user enters 1 for next which would print another file. file-> and so on

0
47
Member Avatar for 5ophie2012

Help! I'm developing a program for a class and I'm a bit lost. My program needs to do the following: 1.) Open a text file using a file dialog box. 2.) Loop and read the file one line at a time using Readline(). 3.) Display every line which has text …

Member Avatar for kvprajapati
0
104
Member Avatar for pjh1985

Hi, i found this image uploader in another post but i'm having a few problems with errors or upload confirmation not displaying at all and was wondering if someone could take a look. [URL="http://www.daniweb.com/forums/thread144647.html"]original thread,[/URL]the file is a zip near the bottom of the page It seems the database code …

Member Avatar for cossay
0
73
Member Avatar for sajohnson05

Below is my file read. I am trying to output it in a table form and also i am trying to read any length of tilde document. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <?php $namefile = 'pilots.txt'; …

Member Avatar for sajohnson05
0
153
Member Avatar for sajohnson05

I have a code that needs to read in a file and has a parameter file. I need to know how to put in <=,<,=,>=,> operators that will be in my parameter file. I beleive that it needs to go in this line: $search=explode(':',strtoupper($params[0])); but not sure if it will …

Member Avatar for sajohnson05
0
99

The End.