199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for serik
Member Avatar for peter_budo
0
95
Member Avatar for chipbu

I've got this code that read in a text file into a string [code=c]private void Read(string path) { StreamReader sr = new StreamReader(path); data = sr.ReadToEnd(); data = data.ToUpper(); sr.Close(); }[/code] it works all right with a small text file, say 1kb. But when I tried to read a 350KB …

Member Avatar for jonsca
0
186
Member Avatar for real_victoria

[code] using System; using System.Reflection; using System.Diagnostics; using System.IO; namespace VersionExe { class Program { public static void Main(string[] args) { int i; // Get the file version for the notepad. FileVersionInfo.GetVersionInfo(Path.Combine(Environment.SystemDirectory, "notepad.exe")); FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\\notepad.exe"); // Print the file name and version number. Console.WriteLine("File: " + …

Member Avatar for kvprajapati
0
1K
Member Avatar for buzzykerbox

Hey Guys and Gals, I'm stuck on a little project im doing myself at home,I need to randomly pick an element from an array and I can only use that element three times,I can randomly pick the element but how do I go about only using it three times,if any …

Member Avatar for buzzykerbox
0
117
Member Avatar for sam023

i m searching a record from database. and it contain more than 10lac records. it take lot of time and some times mysql got crashed. how i can reduce searching time..?? does xml will be helpful in this case.?

Member Avatar for sam023
0
102
Member Avatar for besart

I need to validate three image fields with javascript so the user cant upload anything else expect files with image extensions. A i also need to control the size of the image, for example to restrict user uploading files with greater size than 1MB. Does this thing can be done? …

Member Avatar for Jasmine_Pearl
0
171
Member Avatar for darab

Hi Friends I have about 10 hour recorded sound and now i need when user click in one button from that sound minutes of 6:45 play and then after 5 second it stops how i can do it(not from at the beginnig i want it start from 6:45 reapet not …

Member Avatar for kvprajapati
0
132
Member Avatar for pritesh2010
Member Avatar for kvprajapati
0
110
Member Avatar for BC3

I am using Visual Basic 2008. I am trying to create a web page. I can't seem to get the labels, controls, etc. to let me place them where I want them on the page. I found several articles that suggest to make sure document shows in property window then …

Member Avatar for mitulmodi.rcc
0
85
Member Avatar for samkutty
Member Avatar for sniigg

Hi, I have [code] SessionData sdc = new SessionData(); [/code] And all the properties of sdc are stored in a table in sql server. I want to retrieve the properties of the sdc dynamically. And i know [code] sdc. reader1["xmlname"]= [/code] is a wrong way of doing it. So can …

Member Avatar for sniigg
0
113
Member Avatar for DarkT

Hi everyone. We were given a homework to code a hash table. The objects and their members were given by our professor and we were only supposed to implement the functions (Add, Remove, Contains and Print), so I shouldn't change the objects. I should also do a copy constructor and …

Member Avatar for DarkT
0
2K
Member Avatar for iamai

Hello I have write a simple code just to test about BeginInvoke and EndInvoke methods but i don't get anything. The form has 2 buttons and 2 labels .. if you press the button1 label1 gets increase and so on . here what i have do so far [CODE] Public …

Member Avatar for iamai
0
230
Member Avatar for Naftel23

Hi there, ive been comin here for about a month glancing at forum posts and the practice thread.. I have been self teaching myself C++ for a few months, and it was pretty challenging at first, my biggest problem is memorization.. so anyways... i was wondering if anyone could help …

Member Avatar for Naftel23
0
75
Member Avatar for shanprab
Member Avatar for mitulmodi.rcc
0
101
Member Avatar for liran

Hello I want to implement this function: boolean check(String str,String exp) that gets a string, and an expression and see if it mathches. But (!), according to a format by '*' (maybe similar to the SQL LIKE statement, but with * instead of %). Examples of tests of this function …

Member Avatar for liran
0
212
Member Avatar for g2gayan

Hello .. :) Im on ma way completing my C# project,, but i have a small issue .. let me tell you what it is /// since its complicated to send the whole image to a db i only the send the image name to the database ( table ) …

Member Avatar for g2gayan
0
207
Member Avatar for gptArun

hi all, i m new to sharepoint pls help - Any idea about the Sharepoint Databse structure ? I am using SqlServer 2005 with .NET, Sharepoint How to access my database? where is connection file in sharepoint ?

Member Avatar for gptArun
0
155
Member Avatar for amby

i want to convert string into byte....this can be done in vb.net..can somebody help me in doing this in vb6.0..here the simple code.. Private Sub Form_Load() Dim str1 As String Dim i As Byte i = CByte(Val(str1)) Text1.Text = i End Sub but this code still not able to convert …

Member Avatar for boopathi33
0
314
Member Avatar for jamshed ahmed

JAVA SCRIPT CODE [CODE] function NumbrOnly() { if(event.KeyCode==45 || event.KeyCode==46 || event.KeyCode==48 || event.KeyCode==49 || event.KeyCode==50 || event.KeyCode==51 || event.KeyCode==52 || event.KeyCode==53 || event.KeyCode==54 || event.KeyCode==55 || event.KeyCode==56 || event.KeyCode==57) { event.retunValue=false; } <asp:TextBox ID="TextBox3" onkeypress="NumberOnly('TextBox3')" runat="server"></asp:TextBox> [/CODE] WHAT IAM MISSIGN AND WHEN I WRITE event. then after 'dot' it …

Member Avatar for kvprajapati
0
164
Member Avatar for adrawat

Hi, I have a file in C which has many lines. I want to store each line separately so that i can reference it later with a char *host. How can i do that? Thanks.

Member Avatar for WaltP
0
300
Member Avatar for yeap521

Regarding the title, i want to know the exact way to writing text data to a text file on a web server using http connection in J2ME. I tried the way as below: OutputConnection connection=)OutputConnection)Connector.open("http://localhost/message.txt;append=true",Connector.WRITE); OutputStream out=connection.openOutputStream(); PrintStream output=new PrintStream(out); output.println("Testing"); out.close(); the codes have no problem and no exception. …

Member Avatar for peter_budo
0
104
Member Avatar for SecurExpert

Hi guys, I gat a VB project for a hospital information management system, almost in completion. The issue is that, i want it to collect information from the user installing it. Information like maybe the database name, etc and the likes, you know relevant information necessary for the program to …

Member Avatar for SecurExpert
0
135
Member Avatar for demicin

how does the propositional logic and set theory support computing? answer for me this question.

Member Avatar for jwenting
0
70
Member Avatar for s2xi

Hey guys, I've been looking around the web but can't find a definite answer for this one. I have a program I'm making and I want to cut down my lines by using an array and just have it create my lines for me. I have this set up [code] …

Member Avatar for s2xi
0
90
Member Avatar for bigbags911

[code] import java.util.*; public class Homework11 { Scanner input = new Scanner(new File("keyvalues.txt")); Map<String, Integer> wordCountMap = getCountMap(in); for (String word: wordCountMap.keySet()) { int count = wordCountMap.get(word); while (input.hasNextLine()) { line = input.nextLine(); numLine++; Scanner word = new Scanner(line); while (word.hasNext()){ String nextWord = word.next(); numWord++; numChar = numChar + …

Member Avatar for jwenting
0
93
Member Avatar for himit

Hi, I am trying to parse an xml which i am getting in a variable in my xsl. till the time i do not have any namespace in my xml i can parse all the tags of my xml from my xsl, however, for any tag with a namespace i …

Member Avatar for himit
0
123
Member Avatar for WesFox13

Hello there. It's me again. I think I got most of the Pseudorandom code fixed but there's a problem. [CODE]// Name: Wesley Montgomery // Assignment 1 (Pseudorandom Class) // CS 211 (5:30 PM-7:40 PM) // Craig Niiyama // This class creates a Pseudorandom Number as well as returns the number …

Member Avatar for jwenting
0
211
Member Avatar for sidhu51

Hi, I have a very big vb6 project file with about 16 form modules, 3 class modules and 3 global modules. I want this to be converted into a exe file so that it could run in any system as a stand alone. I tried the make projectname.exe present in …

Member Avatar for sidhu51
0
346
Member Avatar for gms_019

hi! gud day! Here is my problem. Can you help me on how to make a monthly report?? im doing a Payment System of a school here in our place. as our Project. and can you help me on how to hide columns and rows of a datagrid also how …

Member Avatar for jireh
0
81
Member Avatar for teg1989

I'm an extreme beginner with Python (this game is the first time I have ever seen it) so please bear with me. Creating a simple dice game. Place a bet. Three dice are rolled, if any are the same value you lose. If you win, you get double your bet. …

Member Avatar for ~s.o.s~
0
2K
Member Avatar for blind122

I got the first part of my code from my teacher, its how the function should be done, I am just have trouble with what to put for my cin statments as, none of them work. Please help. [CODE]#include <iostream> using namespace std; void reverse(int* a, int n) { int* …

Member Avatar for turrence27
0
187
Member Avatar for 3cats

I have looked around on this forum and none of the past posts really addressed my issue. I created a .txt file with cust no first and last name. I open the file and read in the first line of the file, this part works well. And it displays to …

Member Avatar for 3cats
0
168
Member Avatar for niranga

Hi All, This is the first time I'm working with FTP functions in PHP. I have to create a link to send a [B].sql[/B] file to another server using its' FTP logins. I used ftp_put() function in the following way [CODE]ftp_put($connection, $file_name_1, $file_name_2, FTP_ASCII);[/CODE] It works perfectly in my [B]localhost[/B]. …

Member Avatar for niranga
0
982
Member Avatar for cleigh

I am asking this as general question first because I am not sure that what I am trying to do is even possible. I am using Dreamweaver 8. I have created a php page that accesses a mySQL database to include information from just one record on a form. Through …

Member Avatar for cleigh
0
119
Member Avatar for Marine4God

Hello everyone. I am working on my lab assignment and am somewhat stuck on how to proceed. We are studying using the book [I]Starting out with C++: From Control Structures through Objects[/I] by Gaddis. The lab assignment is as stated: [QUOTE]NamesOf1980s.txt is a text file from the SSA detailing the …

Member Avatar for Salem
0
916
Member Avatar for charlieruns

I have a Photoalbum class and a Photo class. The Photoalbum class obviously holds a bunch of photos in an array. Each photo has a subject, location, date, and path. I need to make a method to search for a a photo with a certain String path. I tried: [code] …

Member Avatar for vchandra
0
180
Member Avatar for Witchfairy

This is due within a few hours, and I am unable to spot what is causing the program to not work. Any suggestions? ["""Bounce - is a game that has a ball which increases in speed when you click on the ball. That click signals the ball to speed up, …

Member Avatar for TrustyTony
0
133
Member Avatar for benazirshafi

i need library system coding using vb[code]I need library sytem codings. can anyone help me out in this problem.[/code]

Member Avatar for abu taher
0
65
Member Avatar for mahela007

I"m trying to make a [URL="en.wikipedia.org/wiki/Sudoku"]sudoku[/URL] puzzle generator (or at least the basics of one) for my project. I'm approaching this by dividing the sudoku grid into 9 rows. Each of the rows will be represented by a list and each list will have 9 elements to represent the nine …

Member Avatar for mahela007
0
366
Member Avatar for sah15

I'm having troubles with a code for a program (involving classes) where I am supposed to input the three sides of a triangle and the program determines whether the triangle is a right triangle, equilateral, isosceles, and scalene, etc. I have only one error preventing me from compiling my program, …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for white feather

[CODE] maxDays = calendar.getActualMaximum(calendar.DAY_OF_MONTH); System.out.println(maxDays); [/CODE] When looking through the javadocs it seems like this would work but it apparently doesn't. Any help on figuring why it doesn't or another way would be appreciated

Member Avatar for BestJewSinceJC
0
152
Member Avatar for drummy

Greetings community, I've exhausted all ideas and patience and turn to the community at large for help. I have data formatted as an ASCII text file with easting, northing, and depth fields. I've attempted an arrayList with some success, but there has to be a better and more efficient approach. …

Member Avatar for drummy
0
170
Member Avatar for chec13

Hello, I just started trying to learn c++ a few days ago. Right now I have run into probems, which, has always happened when I try to learn a programming language. Can anyone help me fix this simple multiplication program? [CODE]#include <iostream> int Multiply27( first, second) { cout << "in …

Member Avatar for chec13
0
167
Member Avatar for coder19

[CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define TRAINING_LIST "./rc/training.list" #define TRAINING_FILE "./training_set/%s" #define TEST_PATH "./test_set/%s" #define PREDICTION_FILE "./prediction.txt" #define FEATURE_FILE "./feat/features.txt" #define MAX_RATINGS 100480508 // Ratings in entire training set (+1) #define MAX_CUSTOMERS 480190 // Customers in the entire training set (+1) #define MAX_MOVIES 17771 // Movies in …

Member Avatar for coder19
0
94
Member Avatar for Naloth

I'm getting errors at every occurrence of my void definitions. "expected primary-expression before "void"" and "expected ';' before "void"" at my "void displayMenu ()" "a function-definition is not allowed here before '{" token" "expected ',' or ';' before '{' token' " At every future occurrence of void. Any ideas? I've …

Member Avatar for Naloth
0
162
Member Avatar for g2gayan

Hello,.. Im a New Guy to this forum and 1st of all;... Hi :twisted: im a newbie to c# programming as well ,,, anyway.. i have a huge issue .. here is what s going to happen.. [CODE] if (txtPath.Text != "") { FileInfo fn = new FileInfo(txtPath.Text); string p …

Member Avatar for g2gayan
0
370
Member Avatar for gnarlyskim

I'm working (well have been for the past few weeks) on a polynomial class to do different things between two polynomials: multiply, divide, get remainder, subtract, add. The coefficients are stored in a pointer to an array listed under private and the degree (also the amount of slots in the …

Member Avatar for gnarlyskim
0
88
Member Avatar for james8901

Hi folks. I have a text file with a thousands of rows of numbers in it. For example: 1 2 4 6 11 13 19 21 66 97 101 ........ 1 3 9 12 18 26 44 56 98 113...... ........... ...... What I want to do is find the …

Member Avatar for Ancient Dragon
0
160
Member Avatar for grady-lad

Hi I am Making a horse racing application .... and the concept is when you enter a number in the textfield and select a horse(one of the 8 jButtons) the application will randomly select one of the JButtons and if the Jbutton is the same as the one selected by …

Member Avatar for BestJewSinceJC
0
2K

The End.