473,385 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

probleum in reading the data from a .val file

198 100+
Hi
i have some probleum in reading the data from .val extension file
when i manually open the file in notepad and just click on file option -> save -> close the txt file and then read the data from vb.net coding it works fine but when i read the data from the selected file directly from coding it reads only first two characters
what is this means i use the following coding
sPathName = txtpath.Text & "\" & sFolderArray(icount) & "\" & sFolder
StmReader = New StreamReader(sPathName)
str = ""
Do
file1 = StmReader.ReadLine
txtfile.Text = txtfile.Text & file1
str = str & file1
Loop Until file1 Is Nothing
StmReader.Close()

is there any method to open and then save the file before readign from the file
please tell me

varinder
Jun 16 '08 #1
3 1431
Plater
7,872 Expert 4TB
That sounds like the file is saved as a UTF file or something and by re-saving in notepad you save it as an ascii file.
It reads in the byte order mark and decides its a "nothing" string and your function exits?
Jun 16 '08 #2
veer
198 100+
thanks for reply
can you tell me how i can do this


That sounds like the file is saved as a UTF file or something and by re-saving in notepad you save it as an ascii file.
It reads in the byte order mark and decides its a "nothing" string and your function exits?
Jun 17 '08 #3
Plater
7,872 Expert 4TB
Open the file as UTF16 (or one of the other formats)
Jun 17 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: veer | last post by:
hello expert i made a website which opens in ie6 and works fine but when i open it in ie7 it creates probleum the probleum is that i have a footer in my webpage , it automatically moves in the...
4
by: veer | last post by:
hi i have programe in which works fine for seaching the data from a file but when the i want to seach the word like" mögen ". In this word " ö " has some other kind of shap and my programe did not...
2
by: veer | last post by:
Hi i made a programe in which i want to calculate the total time from a column but when i declare a variable having datatype is "date" then the default value in this variable is "12:00:00: and...
1
by: veer | last post by:
hi i think it's a silly question but i am very confused about this actually i made program on spell check.This is done by creating object of msword and then with the help of this object i create...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.