Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8861041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:24:06+00:00 2026-06-14T15:24:06+00:00

What I have : So there is this large project I’m working on for

  • 0

What I have:

So there is this large project I’m working on for school, and I have everything working except for a small but vital piece. The programm I am working on must convert currency, and take the rates from a txt file. The file looks like this:

USD 1,2694
JPY 100,44
BGN 1,955
CZK 25,396
DKK 7,45792
...

There is a tab break between the name and the value and a line break between the value and the next currency name. Values have a floating point, and don’t have a fixed length.

What I need:

I need to break this string into two arrays, currencyNames() and currencyValues(), or into a two-dimentional array currency().

What I can do myself:

I can load it from a file into a string with

fileReader = My.Computer.FileSystem.ReadAllText("rates.txt")

And I was able to break it into an array with a simple loop

Do While i < 32
    dummyArray = Split(fileReader, " ")
    i += 1
Loop

but only when there is a space separating the names and values inside the file.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T15:24:08+00:00Added an answer on June 14, 2026 at 3:24 pm

    What you’re looking for are the VB Constants, a set of special strings for special characters like tab and new line – there’s a list at the link, but yours in particular are vbTab and vbCrLf. You shouldn’t need to import anything – they’re built in to VB.

    To use them, you’d change it to something like:

    dummyArray = Split(fileReader, vbCrLf) ' to split on lines
    

    And then:

    For Each s as String In dummyArray
      otherArray = Split(s, vbTab) ' to split on tab characters
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this large IDL that I am importing into a C# project. Everything
I have a fairly large Excel file. In this file there is a column
There have been many debates about this topic already here, but none of them
There have been multiple discussions on this topic in the site but I am
I know there have been some similar questions to this, but they haven't helped
I know there have been a million questions asking this, but mine is different.
I have a large project which I am compiling with GWT. During this process
I am working on a fairly large project and have recently bumped into the
So i have this pretty large project and i have to create database schemas
I'm working on a large project with many developers. We have 2 pages using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.