538 Topics

Member Avatar for
Member Avatar for BeeKeeper18

I know how to search a text file for a specific line, but what I don't know is then how to delete that line? Can anyone help? My text file is set up as such: 021,Donovan,56 Eynesford Crescent,Bexley,SE5 1TR,09/08/1967,13 March 2012,Bronze 062,Fredrikson,6 Freil Road,Gravesend,GR9 TRB,12/06/1995,13 March 2012,Silver So I know …

Member Avatar for Reverend Jim
0
328
Member Avatar for DaveyMoyes

Hi all, I have a small piece of code to check that a field is numeric only, [code] function validate_numeric($variable) { return is_numeric($variable); } [/code] How can I check that text entered is text only ? so to protect against malicous attacks. . . Thanks

Member Avatar for jkon
0
214
Member Avatar for BeeKeeper18

Right guys, I'm really new to this but I'm getting along ok, but I've hit a block. I need to be able to know how to search a text file in VB for a particular line and then display it. the files I'm trying to use are set up as: …

Member Avatar for kaozci
0
344
Member Avatar for Prisms

I am trying to compare a string from my text file to a user input i was wondering how I would do this I have tried the == operator but that seems to be getting me no where. I am currently trying to use the .compare() but it doesn't seem …

Member Avatar for Prisms
0
198
Member Avatar for Kitson

Hi Guys, I'm really struggling getting to grips with C++ I need to read a .txt file which contains something similar to this: [CODE]Eng.Speed Torque 1000.0, 34.55 3800.0, 46.58 6600.0, 47.44 9400.0, 48.75 12200.0, 39.79 15000.0, 24.61[/CODE] I'm trying to: .Open a file named torque1.txt .extract the data .I want …

Member Avatar for WaltP
0
808
Member Avatar for PureHashIsh

I am trying to write a function that compares two text files (test1.txt and test2.txt) word by word, the function is supposed to print "files are equal", "files differ: word %d" (if word 13 then past 12 words were equal), and "EOF on [filename]" (the files were equal word by …

Member Avatar for PureHashIsh
0
2K
Member Avatar for horizondesai

Hi everyone, I am new to RichTextBox control in VB6 I wanted to select the entire line/row in the RichTextBox, where currently the cursor is. How should I do it ? The code should be paste in command button 'cmdSelect' Thanks in advance :)

Member Avatar for horizondesai
0
2K
Member Avatar for Sturdy

Hi all, How i changing the color of label caption dynamically, so it looks like highlight text changing color. Thank you.

Member Avatar for Sturdy
0
237
Member Avatar for zacharysr

How would i make a text area like Facebook's comment text box's. I want it to auto expand when they type to a new line. And just hit enter to post the forum. How would i make it do this?

Member Avatar for diafol
0
123
Member Avatar for Milutz94

Many people are searching for this code, and not all codes are working for them :) So, this is a bit easyer, ussualy a .js and/or .css file are required, but this one is simple! [B]STEP 1[/B] Paste this into your page header: [CODE]<script type="text/javascript"><!-- function setFirstChildImgDisplay(el,vis) { if(!el || …

Member Avatar for stultuske
0
259
Member Avatar for DoubleZ

Hello, so my assignment was to take a text file that contains a properly written C++ program code and to go through that code character by character and output all the comments in that code to another text file. This is what I got so far, basically I`m wondering how …

Member Avatar for Panathinaikos22
0
215
Member Avatar for blindg35

Hello guys, just joined the community. Found it through google. :) I am basically new to python, only couple of days of knowledge. I am trying to make all the words in a txt file appear in 4 or 5 in a row. so the txt file looks like this: …

Member Avatar for woooee
0
241
Member Avatar for razamughal67

please solve my problem i want to know where we show text when we use copy cut command Example: we use a command Ctrl+C or Ctrl+X any text in textbox or any file or folder i want to view his clipboard where it link save OR view in Registry or …

Member Avatar for BitBlt
0
410
Member Avatar for Labdabeta

I was wondering if there is any way using the mingw g++ compiler to make code that acts like this: [CODE]#define myLanguageBlock(X) doMyLanguageBlock(#X) void doMyLanguageBlock(const char* code){/*this executes the code as if it were in another language, I have already written this function*/} int main() { myLanguageBlock( this is all …

Member Avatar for Labdabeta
0
265
Member Avatar for softDeveloper

Dear All, I have a database with two columns, to keep several files of text with lots of text lines in each text: ----------------------- |---name -|- Text---| ----------------------- I want the column |-name-| to be a primary key, and to upload the text file I'm using the command: [CODE] LOAD …

Member Avatar for softDeveloper
0
173
Member Avatar for justin08

Hello everyone or anyone! Could some please assist me on how to read a text file like this: ProgrammingAssignment1Data.txt 123 South Market Street Downtown 101 Package 0 1599 Burbank Road Cinema 10 Movie posters in tubes 1 1 order slip format is: Pick up address Drop off address item description …

Member Avatar for stultuske
0
189
Member Avatar for softDeveloper

Hi All, I'm copying a long text from word and pasting into a html textarea and from here I send it to MySQL database. If the submited text is too long nothing happens. Any ideas on how to submit a large amount of text from a webpage to a MySQL …

Member Avatar for stultuske
0
197
Member Avatar for infantheartlyje

Hi folks, I'm having a doubt. I write a letter in notepad and i saved it as 'letter.txt'. Then i realized that i forgot to say one matter in that letter. So i opened 'letter.txt' using any text editor such as notepad, wordpad or something. Now i inserted the letters …

Member Avatar for deceptikon
0
234
Member Avatar for swy

I'm trying to read in the following text file: Jim Nasium mgr Fitness & Leisure 45000 Lazy Susan mgr Home Furnishings 55000 Gene Theory mgr Fine Jewelry 10000 And I have the following code: public abstract class Employee { private String name; private double grossPay; private double netPay; private final …

Member Avatar for NormR1
0
214
Member Avatar for shandoosheri

Hi i want to add text to speech functionality to my app but i can only use the default Microsoft Anna voice which i want to change and i have tried installing some SPAI4 voices but i can't use them so please help me i have tried this code but …

Member Avatar for shandoosheri
0
153
Member Avatar for ellenwillss

What is the correct use of Anchor text? Does it ever happen that it is over used? There is so much said about this, friends share your opinions here. I want to know how much anchor text is enough.

Member Avatar for canadafred
0
177
Member Avatar for ronvenna

Hello I am supposed to find a bunch of different statistics from a text file for a homework assignment. I have found everything except the shortest line that is not a blank line. Can someone help me solve this problem? Thanks [CODE] def stats(): linecount = 0 blankline = 0 …

Member Avatar for woooee
0
529
Member Avatar for northrox
Member Avatar for roshurwill

Hi everyone, recentley new to programming and the language python. So ive learned an amount of python, i decided to start a projct. My project is to make a game, which the user plays using only commands, like walk foward, open the door etc, you are in the bedroom... whatever. …

Member Avatar for woooee
0
509
Member Avatar for a1a4a

Greetings I am on a project where the application read a text and execute commands in the text... i am having problems in the part of finding the command from the text. So let's say i have a file with the following text : [QUOTE] message:Hello this is a message …

Member Avatar for a1a4a
0
346
Member Avatar for HadoukenGr

[CODE]#include<stdio.h> #include<string.h> void FindWord (char used[30] , char string[30] , int wordsize); char* CleanString (char string[30], int wordsize); int main (void) { FILE *fp; char letters[30]; char words[30]; char used[30]; char *string; int wordsize; int input_size; input_size = wordsize = 0; fp = fopen("dictionary.txt","r");/*contains a list of words in the …

Member Avatar for HadoukenGr
0
134
Member Avatar for kenth21v

Good Day. I am using VB.net 2010 and SQL client server. I have to make a Weekly Report Manager that stores an Trainees' weekly activity, which would probably be in a paragraph form. I think I can use Textbox (multilined) or Richtextbox for this. But When I tried to store …

Member Avatar for kenth21v
0
3K
Member Avatar for zerofreak

Hello guys, I've newly joined this forum since I want to enhance my knowledge in Programming specially in Visual Basic. So for the important part, right now I'm planning on creating a word detector somehow and there are specific rules I was to set in the textbox in relation with …

Member Avatar for zerofreak
0
546
Member Avatar for Knoxarama

I'm working on a formula calculator. In it, I've designated user controls (it's in a console). The script keeps track of the user inputs by assigning all user inputs concerning navigation into a string labeled 'ans'. However, I can't seem to get the 'if' and 'else' function to work with …

Member Avatar for Narue
0
288
Member Avatar for stakeMyHeart

im a total newbie and i dont get this: i dont get this flat text file my professor is talking about. I read from wikipedia that: A "flat file" is a plain text or mixed text and binary file which usually contains one record per line[2] or 'physical' record (example …

Member Avatar for stakeMyHeart
0
4K

The End.