538 Topics

Member Avatar for
Member Avatar for JavaPrograms

My task is to: Pick 10 of my favourite NBA or NHL players from 2 top teams and display the player name, team name, points, rebounds, and assists for each of them. I then have to store this information as a table in a .txt file (This part is completed). …

Member Avatar for David Kroukamp
0
416
Member Avatar for tcl76

hi, attached is my sample file. i want to extract all lines starting from -- num until before -- Advanced. appreciate if anyone can show me. thanks johnny

Member Avatar for tcl76
0
599
Member Avatar for Suirbachi

Hello all, I'm taking my first BASIC programming class this year, and for a final project, I'm trying to make a book-keeping log. What I want to have happen, is to open a list of books, highlight a book title, click the "check in" button and have the text change …

Member Avatar for BitBlt
0
269
Member Avatar for 2concussions

hello. i am trying to make a text editor. i can't figure out how to get the file that i select in the JFileChooser to show in the JTextArea. and I also can't figure out how to get the text from the JTextArea to save into a .txt file. [code=java] …

Member Avatar for 2concussions
0
437
Member Avatar for softDeveloper

Dear all, I'm passing a javascript String variable varname in a form inside a jsp to another page. [CODE] <form name="form1" action="nextpage.jsp" method="post "> <input type="hidden" name="varname" value="teste" /> <input type="button" value="button" onClick="document.form1.varname.value = function(window);"> <input type="submit" name="button" value="test1" /> </form> [/CODE] When I get the String in the next …

Member Avatar for softDeveloper
0
195
Member Avatar for esesili

Hello all, I want to write a qui program which opens and reads a text file when pressed Open File button. So far, when I click the button Open File Dialog works and I can choose the file to read but I do not know how to read it line …

Member Avatar for esesili
0
205
Member Avatar for Gregor007

There's the text given (Duomenys.txt). The program removes vowels of the longest words in each line. How do you redo the program to find numbers in the line (starting with -+0123456789) and insert the word NUMBER before these numbers (in the results file). [CODE]const char Cduom[] = "Duomenys.txt"; // data …

Member Avatar for WaltP
0
148
Member Avatar for zaneulhaq

Hey guys, what i'm basically trying to do in this code is to write an array which is automatically written to a txt file in the order I have shown below, however, I not only get this error [code] --------------------Configuration: testmtl - Win32 Debug-------------------- Linking... LIBCD.lib(crt0.obj) : error LNK2001: unresolved …

Member Avatar for Schol-R-LEA
0
263
Member Avatar for Lemony Lime

I've done some searching, and it seems a few people have asked similar questions, but none of them were quite what I was looking for. I need to be able to read lines of code from a .txt file, and then execute them in Java. Or, if that's impossible, would …

Member Avatar for NormR1
0
3K
Member Avatar for Lemony Lime

So, I have a two part question for you... I'm going to be writing several lines of code to a .txt file, but I won't know what each line is, or how many there will be. There could easily be hundreds of lines. I need to add a prefix to …

Member Avatar for gorbulas
0
223
Member Avatar for Lemony Lime

I'm pretty new to programming, so this may be really obvious, but I'm having trouble with it. I'm trying to learn python, so I thought I'd make a simple program in python to help me write similar lines of java code faster, (I'm going to easily have hundreds of lines …

Member Avatar for Lemony Lime
0
534
Member Avatar for siddharthan64

79 0009!017009!0479%0009!0479 0009!0469%0009!0469 0009!0459%0009!0459'009 0009!0459%0009!0449 0009!0449%0009!0449 0009!0439%0009!0439 0009!0429%0009!0429'009 0009!0429%0009!0419 0009!0419%0009!0409 000'009!0399 0009!0389%0009!0389'009 0009!0379%0009!0369 0009!0349%0009!0349 0009!0339%0009!0339 0009!0339%0009!0329'009 0009!0329%0009!0329 0009!032 In this data, I'm supposed to extract the number 47, 46 , 45 , 44 and so on. Im supposed to avoid the rest. The numbers always follow this flow - 9!0 …

Member Avatar for hiddepolen
0
253
Member Avatar for Prisms

Hey guys I have this code snippet and I want to read from this file and print the contents of my text file (Transcript.txt) to the screen. I don't have any errors but when I run the program it prints "Display it to the standard output" instead of whats on …

Member Avatar for NormR1
0
238
Member Avatar for rexdon

by default i want to ask the user to enter text in textbox in pattern: _x_____. for example : 0x81A00. User should be able to allow both [B]numeric [/B]and [B]alphabet[/B]. for this i used TextBox.Mask="0x00000"; but this allows user to enter only numeric values..but i need to enter alphabet also.

Member Avatar for Munnazz
0
326
Member Avatar for //Gonz

Hello daniweb chums I once again cannot seems to get a simple bit of text box validation working I am trying to detect if a first name entered contains a number by converting the text box text into a char array and then convert each character entered (using a for …

Member Avatar for Antenka
0
259
Member Avatar for dean8710

Could someone fixed this codes, i want the value inside the text fields will empty after submit the form.. huhu...:?: [CODE]<script type="text/javascript"> $(document).ready( function() { $('#submit_id').click(function(){ doUpload(); }); $('#uploadprogress').hide(); }); function doUpload() { // STEP 2. Create the iframe object var iframe; try { iframe = document.createElement('<iframe name="uploadiframe">'); } catch …

Member Avatar for stbuchok
0
271
Member Avatar for izh

Hello, I joined here desperately asking for your help I have an assignment about creating a program that loads a text file given. the text file contains many lines and those lines are questions and answers it is on this sequence question answer question answer and so on so we …

Member Avatar for izh
0
246
Member Avatar for walid86

i have a richtextbox where the user inputs his/her name.. This needs to always be 60pixels wide, regardless of text.. ie: Johnathon or Tim need to be resized to best fit the control. i've looked on the net, but only found VB solutions. Is there a way to achieve this?.. …

Member Avatar for Antenka
-1
198
Member Avatar for giancan

Hi there, how can I read a file line by line till the 150th line? I mean, I know the [CODE]for line in f:[/CODE] but I want to read only (let's say) 150 lines of the f file. Thanks a lot

Member Avatar for giancan
0
186
Member Avatar for ZeroEddy

I am having a bit of rouble trying to sort this out. Basically im creating a header for my website and I want the text to be a certain size when the page loads. If the current window is resized I want the text to change also. I cannot seem …

Member Avatar for suresh ma
0
148
Member Avatar for Awah Mohamed

hi guys, how can i get the difference between two strings in PHP? i mean lets say string 1 = "hello world" and string 2 = "Hello World" the php code should compare these two strings and output something like: the difference between the two strings is 20%... so how …

Member Avatar for diafol
0
153
Member Avatar for twazzer

Hi there, I have been asked to import a text file into java, the file contains a series of 1's and 0's which draw a picture. The 1's will be drawn as a dot where as the 0's will be a blank space. I was wondering if anyone could show …

Member Avatar for NormR1
0
209
Member Avatar for Jetster3220

Task: • Create a text file with 5 questions in it. • Read each question in from the file. • Ask the user for their response. • Create a new text file. • Write the user’s answers to the text file. • Ask the user if they’d like to review …

Member Avatar for woooee
0
306
Member Avatar for killerbeat

Hey, I have an website with dynamic text on it, i want to transfer the text to an textbox, and the text is between this tags: <pre> </pre> How do i do this?

Member Avatar for fiaworkz
0
3K
Member Avatar for compulove

I created some code for a browse buton and it works, but I want to send the textbox information to the text file according to the headings that I have listed within it. I am getting an error when I put [CODE]Handles Browse.Click[/CODE] and I get errors whenever I try …

0
124
Member Avatar for Wolxhound90

Hey all, I'm trying to do a project which involves reading the text from a number of textboxes and putting it into a string. I'm just wondering if there's an easier way to it other than: [CODE]CreateString += TextBox1.Text + TextBox2.Text + TextBox3.Text... (etc)[/CODE] I have thought about creating a …

Member Avatar for codeorder
0
809
Member Avatar for walid86

i'm using [CODE]using (Graphics g = Graphics.FromImage(bmp)) { //Set quality to High g.CompositingMode = CompositingMode.SourceCopy; g.CompositingQuality = CompositingQuality.HighQuality; g.SmoothingMode = SmoothingMode.HighQuality; g.InterpolationMode = InterpolationMode.HighQualityBicubic; g.TextRenderingHint = TextRenderingHint.AntiAliasGridFit; g.PixelOffsetMode = PixelOffsetMode.HighQuality; g.TextRenderingHint = TextRenderingHint.AntiAliasGridFit; panel1.DrawToBitmap(bmp, new System.Drawing.Rectangle(0, 0, 2480, 3508));[/CODE] to draw the contents to an image, but the quality of …

Member Avatar for walid86
0
365
Member Avatar for huntaz556

Hi everyone im making a program to keep track of your movies just keeping it simple ! but im having a problem i am writing what movies you have to a text file but i cant append to it every time i write to the text file it overwrites everything …

Member Avatar for TrustyTony
0
294
Member Avatar for mprabuw

Hello Dani Web Forum, I'm really new to C. I have an assignment, which I think it's very hard to solve. I have to create a Currency Converter Program that reads data from txt files. The program should also be able to read arguments (argv[]). I'm really confused since it's …

Member Avatar for mprabuw
0
771
Member Avatar for shandoosheri

Hi guys i have a problem that i have a text file which contains very long text like : welcome to all, how are you doing, etc.. so i need to cut the text till each comma and put it in a separate file like i want to pu [welcome …

Member Avatar for thines01
0
183

The End.