Thread: Need Help Showing Compiled Data On Terminal

  1. #1
    Registered User
    Join Date
    Oct 2023
    Posts
    1

    Post Need Help Showing Compiled Data On Terminal

    Hi everyone!


    I need help building a very simple data compiler which will be used on the terminal. I am using Visual Studio Code as my IDE if that matters.


    1. When I run the script on my IDE or call it on my command prompt/powershell, the first thing it will output is: "Please enter the full file path of the txt file!". The file path will be something like: "‪C:\Users\user1\Downloads\Bus Stop.txt" After I select the file, it should return: "Bus Stop.txt successfully loaded"


    This is the file I am loading: Bus Stop.txt


    2. After "Bus Stop.txt successfully loaded" appears, the following options for the user to choose should appear:



    1. SHOW ALL
    2. "TO BE ADDED"
    3. "TO BE ADDED"



    For example, the user needs to enter 1 to use 1. SHOW ALL.


    For now, I just need help with the 1. SHOW ALL. 2 and 3 are just placeholders for later. The SHOW ALL function should just list all the contents of the txt file in the terminal as it is:


    ID Name
    10009 Bt Merah Int
    10011 Bef Neil Rd
    10017 Aft Hosp Dr
    10018 Outram Pk Stn Exit 6/SGH
    ***SO ON AND SO FORTH***


    Any help is much appreciated! Please add notes in your code too


  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    OK, so where is your initial attempt?

    Just rolling in with your homework and a "Please add notes in your code too" makes you look like a freeloader looking for high marks with zero effort.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Apr 2021
    Posts
    140
    But... but... I had to find this forum and upload my data file and format my question. I DID NOT make zero effort, and I do not appreciate being accused of zero effort!

  4. #4
    Registered User rstanley's Avatar
    Join Date
    Jun 2014
    Location
    New York, NY
    Posts
    1,111
    Deleted.
    Last edited by rstanley; 10-27-2023 at 01:04 PM.

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Also on SO (and already closed for lack of effort - for reference)
    c - Showing Compiled Data On Terminal - Stack Overflow
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 0
    Last Post: 05-05-2015, 08:14 PM
  2. data from terminal to a local file.
    By jas_atwal in forum Linux Programming
    Replies: 4
    Last Post: 12-12-2007, 05:14 PM
  3. terminal output not showing output properly
    By stanlvw in forum C Programming
    Replies: 13
    Last Post: 11-19-2007, 10:46 PM
  4. Table not showing data
    By vaibhav in forum C# Programming
    Replies: 1
    Last Post: 07-16-2006, 05:20 AM
  5. No data showing in combo box
    By PJYelton in forum Windows Programming
    Replies: 6
    Last Post: 04-29-2005, 07:20 PM

Tags for this Thread