Library

Video Player is loading.
 
Current Time 0:00
Duration 0:00
Loaded: 0%
 
x1.00


Back

Games & Quizzes

Training Mode - Typing
Fill the gaps to the Lyric - Best method
Training Mode - Picking
Pick the correct word to fill in the gap
Fill In The Blank
Find the missing words in a sentence Requires 5 vocabulary annotations
Vocabulary Match
Match the words to the definitions Requires 10 vocabulary annotations

You may need to watch a part of the video to unlock quizzes

Don't forget to Sign In to save your points

Challenge Accomplished

PERFECT HITS +NaN
HITS +NaN
LONGEST STREAK +NaN
TOTAL +
- //

We couldn't find definitions for the word you were looking for.
Or maybe the current language is not supported

  • 00:03

    Hey guys welcome to another visual basic tutorial by the Magic Monk. This tutorial

  • 00:11

    is actually requested by one of the YouTube users who needs some help with an

  • 00:19

    assignment so here it is the first thing i want to talk about is how to open up a

  • 00:27

    text file and load up the text file and print the contents in your program now

  • 00:36

    the reason why you want to be able to do that is because later on we're going to

  • 00:42

    teach you guys how to save data into a text file but that's a bit more

  • 00:48

    complicated so the first thing we're going to do is learn how to open up the

  • 00:57

    file first okay so the first thing I want you guys to do is click on new

  • 01:02

    project so I've just opened up Visual Basic 2010 Express and so right now this

  • 01:11

    is just a welcome screen and I want you guys to click on new projects and I just

  • 01:19

    want a windows form application and the name of it I'm going to call it text

  • 01:24

    file tutorial 1 text file tutorial 1 so I'm going to click OK and you can see

  • 01:38

    that the project has been created now what I want you to do is click save save all

  • 01:47

    and then where it says save project I want you to remember the location of the

  • 01:54

    project and the name of the project and click Save ok so now that we have saved

  • 02:03

    the project I'll make sure you really do click Save or otherwise

  • 02:09

    it's not going to work what we're going to do now is simply in this project

  • 02:14

    create a button and a label now what's going to happen is when I click this

  • 02:23

    button we're going to load up a text file and the contents of that text

  • 02:29

    file is going to be displayed in this label okay so I'm going to call

  • 02:35

    this button read from file so click on that and change the text to read from

  • 02:43

    file so now you can see the button as the words have just changed and now

  • 02:52

    we're going to double click on the button and we're going to enter in some

  • 02:57

    code for the button and the first line of code I'm going to type in dim

  • 03:05

    space file num as integer equals three file brackets now what this does is the

  • 03:23

    free file function what it does is it returns an integer our value that

  • 03:33

    represents the next file number available so basically every file that

  • 03:40

    you open up is going to have a file number and people who get mixed up with

  • 03:49

    which file number represents which file they'll probably lose track of what file

  • 04:00

    numbers they have used so free file is simply a function that returns a number

  • 04:06

    where there's a spare integer value for your file to be assigned for you to your

  • 04:16

    file so

  • 04:20

    anyway that integer is going to be stored in the variable file num and I'm

  • 04:28

    going to create declare another variable called string sorry

  • 04:39

    temp s as string and we're going to explain what that does in a second but

  • 04:48

    basically right now all you need to understand is it's a string variable

  • 04:53

    called temp s and I'm also going to declare another another string variable

  • 05:00

    called tempL okay so we have three variables the first string variable has

  • 05:11

    a value of nothing and the second string variable has not been

  • 05:20

    assigned any values okay now we're going to run the function file open and this

  • 05:28

    is the function that opens the text file now the first argument that it wants is

  • 05:37

    the file number now notice how we have already stored the file number into a

  • 05:47

    variable called file num so that's the first thing we typed in and then the next

  • 05:54

    thing it wants is the file name as a string now I'm just going to put in

  • 06:01

    "test.txt and we're going to create that file very

  • 06:11

    soon actually let's call it score.txt and we're going to create that file in a

  • 06:17

    second and then you're going to type in openmode. and you can see there's

  • 06:26

    five options here and basically you need to decide

  • 06:30

    what you're opening your file up for if you're opening it to write to it or to

  • 06:38

    read from it or to append to it now right now we just want to read from it

  • 06:43

    so it's OpenMode.Input and you can think of this as inputting the contents

  • 06:53

    of that file into our program so that's why it's called input ok and now we want

  • 07:01

    to use a do until loop now the difference between do until and

  • 07:08

    do-while is that do until will repeat a set of instructions until this condition

  • 07:19

    here is true so basically right now this condition is false so it will keep

  • 07:31

    repeating everything that I'm putting in this section now what does this part say

  • 07:40

    this part is saying that until the end of the file has been reached right so

  • 07:49

    this is file number whatever number it is we've opened it up and we're going to

  • 07:56

    keep working on whatever it is that we tell it to do until we reach the end of

  • 08:01

    the file so what are we going to do well that's going to require us to use the

  • 08:06

    temp l variable which we created earlier and what we're going to do is we're

  • 08:12

    going to get one line at a time so this is going to get the first line so line

  • 08:19

    input basically it reads a single line from the file so it's going to read that

  • 08:27

    first line from this file number which is school.txt so it's going to read that

  • 08:34

    that first line and put the contents into the variable tempL

  • 08:41

    and then what we're going to do is we're going to add this whole line into

  • 08:49

    our string variable tempS so tempS is going to equal sorry I'm going to use

  • 08:58

    the increment operator so I'm adding temp string to temp line

  • 09:06

    so basically TempS is going to contain what it had before plus temp L and then

  • 09:15

    I'm going to add a line break which is represented by this variable so this

  • 09:28

    represents a return character which is a line break okay so now we're going to

  • 09:37

    keep looping this and then I'm going to close the file

  • 09:44

    and the last thing I want to do is I want to display everything in TempS

  • 09:53

    which is going to contain the whole file into the label so Label1.Text is

  • 10:04

    going to equal TempS okay now I want you to now click run to start debugging and

  • 10:18

    see what happens so save it first ctrl s click the play button or debug button

  • 10:24

    and then you will see the application with a button you can press so press

  • 10:31

    that button and you will see an error what is the error it cannot find your

  • 10:40

    text file so that is all part of the plan

  • 10:44

    so now we're going to copy this file path and I'm going to open up this file

  • 10:53

    this folder according to that path so that path is

  • 11:02

    located here all right so I've just opened it up from my computer and within

  • 11:10

    this folder I'm going to right-click and create a txt files a new text document

  • 11:17

    and I'm going to call it score.txt and what am I going to put in this file all

  • 11:25

    right now I'm just going to put in my name and let's say a score

  • 11:32

    that I got from Tetris or whatever game that I have played and then I might do

  • 11:40

    it for my brother as well okay so I'm going to save this file close it close

  • 11:49

    this folder I'm going to stop it and I'm going to run this file run this program

  • 11:57

    again and this time when I click read from file

  • 12:02

    it reads my text file and puts it in the label okay so hopefully you got

  • 12:10

    something out of this tutorial see you again next time.

All

The example sentences of INTEGER in videos (15 in total of 123)

anyway adverb that determiner integer noun, singular or mass is verb, 3rd person singular present going verb, gerund or present participle to to be verb, base form stored verb, past participle in preposition or subordinating conjunction the determiner variable adjective file noun, singular or mass num proper noun, singular and coordinating conjunction i personal pronoun 'm verb, non-3rd person singular present
the determiner pointer noun, singular or mass ptr proper noun, singular can modal point verb, base form to to a determiner memory noun, singular or mass location noun, singular or mass , at preposition or subordinating conjunction which wh-determiner an determiner integer noun, singular or mass is verb, 3rd person singular present stored verb, past participle .
because preposition or subordinating conjunction only adverb x proper noun, singular now adverb needs verb, 3rd person singular present to to be verb, base form integer noun, singular or mass , we personal pronoun append verb, non-3rd person singular present and coordinating conjunction x proper noun, singular integer noun, singular or mass to to the determiner model noun, singular or mass .
the determiner integer noun, singular or mass variable adjective called verb, past participle " detected verb, past participle " and coordinating conjunction here adverb we personal pronoun say verb, non-3rd person singular present if preposition or subordinating conjunction " detected verb, past participle " is verb, 3rd person singular present equal adjective high proper noun, singular so adverb
as preposition or subordinating conjunction a determiner result noun, singular or mass of preposition or subordinating conjunction this determiner non noun, singular or mass integer noun, singular or mass dimension noun, singular or mass and coordinating conjunction detail noun, singular or mass at preposition or subordinating conjunction arbitrarily adverb small adjective scales noun, plural , the determiner
to to increasing verb, gerund or present participle integer noun, singular or mass exponents noun, plural , so preposition or subordinating conjunction some determiner terms noun, plural will modal be verb, base form imaginary adjective and coordinating conjunction others noun, plural will modal be verb, base form real adjective .
so preposition or subordinating conjunction the determiner input noun, singular or mass that preposition or subordinating conjunction we personal pronoun 're verb, non-3rd person singular present given verb, past participle is verb, 3rd person singular present two cardinal number integers noun, plural and coordinating conjunction a determiner is verb, 3rd person singular present the determiner first adjective integer noun, singular or mass and coordinating conjunction b proper noun, singular is verb, 3rd person singular present the determiner second adjective integer noun, singular or mass .
integer noun, singular or mass then adverb the determiner hosting verb, gerund or present participle is verb, 3rd person singular present an determiner integer noun, singular or mass so preposition or subordinating conjunction this determiner is verb, 3rd person singular present what wh-pronoun i personal pronoun did verb, past tense notice noun, singular or mass that preposition or subordinating conjunction i personal pronoun 'm verb, non-3rd person singular present not adverb going verb, gerund or present participle to to choose verb, base form n proper noun, singular
bits noun, plural where wh-adverb k proper noun, singular is verb, 3rd person singular present any determiner integer noun, singular or mass less adjective, comparative than preposition or subordinating conjunction or coordinating conjunction equal adjective to to n proper noun, singular , the determiner window noun, singular or mass size noun, singular or mass .
in preposition or subordinating conjunction this determiner expression noun, singular or mass , x proper noun, singular could modal be verb, base form any determiner number noun, singular or mass , but coordinating conjunction n proper noun, singular can modal only adverb be verb, base form an determiner integer noun, singular or mass .
the determiner wavelength noun, singular or mass , or coordinating conjunction twice adverb the determiner wavelength noun, singular or mass or coordinating conjunction 3 cardinal number times verb, 3rd person singular present the determiner wavelength noun, singular or mass , or coordinating conjunction any determiner integer noun, singular or mass times noun, plural
rational adjective number verb, base form it personal pronoun means verb, 3rd person singular present it personal pronoun has verb, 3rd person singular present to to be verb, base form an determiner integer noun, singular or mass over preposition or subordinating conjunction an determiner integer noun, singular or mass so preposition or subordinating conjunction we personal pronoun can modal write verb, base form this determiner as preposition or subordinating conjunction a determiner over preposition or subordinating conjunction b proper noun, singular
a determiner hero noun, singular or mass triangle noun, singular or mass is verb, 3rd person singular present a determiner triangle noun, singular or mass that wh-determiner has verb, 3rd person singular present integer noun, singular or mass sides noun, plural , whole adjective number noun, singular or mass sides noun, plural , and coordinating conjunction an determiner integer noun, singular or mass area noun, singular or mass .
it personal pronoun 's verb, 3rd person singular present got verb, past participle an determiner integer noun, singular or mass called verb, past participle p proper noun, singular and coordinating conjunction an determiner integer noun, singular or mass called verb, past participle q proper noun, singular so adverb saving verb, gerund or present participle the determiner linked verb, past participle list noun, singular or mass and coordinating conjunction in preposition or subordinating conjunction
as preposition or subordinating conjunction to to t proper noun, singular regular adjective integer noun, singular or mass , are verb, non-3rd person singular present 0 cardinal number to to 2 cardinal number to to the determiner 32nd adjective power noun, singular or mass minus noun, singular or mass 1 cardinal number ,

Use "integer" in a sentence | "integer" example sentences

How to use "integer" in a sentence?

  • [L]ife ceases to be a fraction and becomes an integer.
    -Harry Emerson Fosdick-
  • Is a woman a thinking unit at all, or a fraction always wanting its integer?
    -Thomas Hardy-
  • All of mathematics can be deduced from the sole notion of an integer; here we have a fact universally acknowledged today.
    -Emile Borel-
  • My problem is that I have been persecuted by an integer.
    -George Armitage Miller-

Definition and meaning of INTEGER

What does "integer mean?"

/ˈin(t)əjər/

noun
Math a whole number.