hi, i am trying to read from a text file and store the data in an array but i don't know how to get started with my code. can someone please get me started here. i have start with the code for locating the file, but i am having difficulty reading the file. Dim strFileName As String OpenAnswerFile.ShowDialog() strFileName = OpenAnswerFile.FileName MessageBox.Show(strFileName) 'message box showing the file path

Member Avatar
Member Avatar
+0 forum 13

Hi, i am try to read from a file and then split the data and store them in array but i am getting an error. can someone please point to the right direction here is the file i am trying to read from 8 223432,YNYYYYYYYYYNYNYNYYNY- 623123,YNYNYNYYNY--YNYNYYNY 912234,YYYNYNYNYNYYNYYNYYNY 612356,YYYNYFYNYYNYYNYYNYYN 165478,YYYNYYYYY-NYYNYYNYYN 612321,YYYNYFYNYYNYYNYYNYYN 165213,YYYNYYYYY-NYYNYYNYYN my code is as below [code] Dim Result As DialogResult Dim strFileName As String Dim sreStreamReader As IO.StreamReader Dim strRecord As String Dim strRecord1 As string Dim strField(1) As string Dim intCount As Integer = 0 Dim mstrName(7) As string Dim mintMark(7) As string Try Result = OpenStudentResponsesFile.ShowDialog If …

Member Avatar
Member Avatar
+0 forum 3

Hi, i want to write a program that will automate my backup on a windows using python but i have no idea how to get started. can someone please point me to the right direction. thanks in advance

Member Avatar
Member Avatar
+0 forum 3

Hi, i am having some difficulty calling this function, can someone please point out what i have done wrong here. The code is as below appreciate your help. [CODE]#include<iostream> #include<stdlib.h> using namespace std; void speed_value(int input) { int speed; char character; if(speed > 60 && speed <65) { cout<<"Warning"<<endl; } else if(speed > 60 && speed <65 && character == 'y') { cout<<"Warning + take a shower"<<endl; } cout<<endl; } int main() { int speed; char character; cout<<"Enter the speed in KM/HR"<<endl<<"\n:"; cin>>speed; cout<<"Enter y if drunk or n if not drunk"<<endl<<"\n:"; cin>>character; cout<<speed_value<<endl; system("PAUSE"); return 0; } [/CODE]

Member Avatar
Member Avatar
+0 forum 8

Hi, i need your expertise in this one. i am new to python, i want to write an algorithm that takes a string as input and determines whether or not it is a palindrome. please point me to the right direction. Thanks in advance. sabiut

Member Avatar
Member Avatar
+0 forum 11

The End.