Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Visual Logic I/O Files and Post-Test WHILE Loop


  • Please log in to reply

#1
njcutie

njcutie

    New Member

  • Member
  • Pip
  • 1 posts
Hello everyone. I am new to this forum. I came across it while doing an Internet search for Visual Logic assistance.

Does anyone know how I would indicate in a post-test WHILE loop to continue reading the Input file until it reaches the end of the file? I am just testing something very basic. I have created a text file containing people's names. I am asking the program to read the text file, then output each name, so long as the program has not reached the end of the file. I am receiving an error when the program reaches the WHILE loop. I don't know what the proper expression is. I've attached a file showing what I have.

Thanks in advance for any assistance that you can provide.

Attached Files


  • 0

Advertisements


#2
insider27

insider27

    New Member

  • Member
  • Pip
  • 1 posts
"not end of file" is not acceptable logic. Replace that by requesting an input from the user, something along the lines of "0 to end" and then in the while loop expression create something along these lines "input<>0". The "<>" means does not equal.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP