473,597 Members | 2,726 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

readline and national character problem

readline method and national charset problem
hi how can i copy line from text file which contains polish characters. i
use readline method from StreamReader class but it doesn't copy polish
characters :( what shall i do ??

this is a code how can i change it to works the same way
Dim oFile As System.IO.File
Dim oRead As System.IO.Strea mReader
Dim oWrite As System.IO.Strea mWriter
Dim LineIn As String
Dim nowo As Boolean = True

Do While MyFile <> ""
If MyFile <> MyName Then
Try
If oFile.Exists(My Path & "\" & MyName) Then
'(MyPath & "\" & tablica(1)) Then
oRead = oFile.OpenText( MyPath & "\" &
MyFile)
oWrite = oFile.AppendTex t(MyPath & "\" &
tablica(1))
'oFile.Delete(M yPath & "\" & MyFile)

Dim plik As New FileInfo(MyPath & "\" &
MyName)
If plik.Length <> 0 Then
LineIn = oRead.ReadLine( )
End If

While oRead.Peek <> -1 'odczyt i zapis
do pliku test
LineIn = oRead.ReadLine( )
oWrite.WriteLin e(LineIn)
End While
nowo = False

wolku
Mar 24 '06 #1
0 995

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2562
by: Leif B. Kristensen | last post by:
I'm developing a routine that will parse user input. For simplicity, I'm converting the entire input string to upper case. One of the words that will have special meaning for the parser is the word "før", (before in English). However, this word is not recognized. A test in the interactive shell reveals this: leif@balapapa leif $ python Python 2.3.4 (#1, Feb 7 2005, 21:31:38) on linux2 Type "help", "copyright", "credits" or "license"...
0
1673
by: marchab | last post by:
Hallo! I've got a problem with INSERT statment which includes any special (national) character. It ends with SQL0104 error. It's strange because isql utility executes the same statement without any problem. Below I attached details of my configuration >locale
7
9682
by: Mike Joseph | last post by:
I have a data file that was produced in MicroSoft Access. It's a table that was exported as a fixed format, sequential access ASCII file. It contains over 80,000 records. Basically, all the stats for every player in Major League Baseball history in alphabetical order and then by each year they played. I want to take this data and display to the user the career totals for each player. I don't seem to understand how to use StreamReader...
0
1270
by: Eric Carr | last post by:
Hi, we have been using WMI from VB6 to automate configuration of new DNS zones on our win2000 servers, and are now trying to move the system to a vb.net application. We recently added some zones with names containing national characters (norwegian ÆØÅ), and then everything stopped working, including the old VB6 app. The error occurs when I try to enumerate the zones - it stops when it reaches the first zone (alphabetically) containing...
2
10523
by: Jan | last post by:
Hello there, I've got a strange problem using the readline method in vb2005 for reading the serial port. If I use the readchar method I can receive one character from serialport. This is the code I use: Function ReceiveSerialData() As String ' Receive strings from a serial port. Dim returnStr As String = ""
3
1988
by: Dariusz Tomon | last post by:
Hi My problem is like that: I'm trying to pass values branza and jezyk in querysting: http://localhost/euroadres/pokazbranza.aspx?branza=transport lotniczy&jezyk=1 Branza is type "string" and when I'm passing string value without national
1
2348
by: mike.biang | last post by:
I am using the textstream object to read a CSV file and parse through the fields. I use the readline() method to read in each line of the file, and parse the contents into the values of the different fields. With files generated on a windows system, this works fine. However, when working with CSV files genereated through Excel on a Mac, the entire contents of the file is read when I make the first ReadLine call. I imagine that this...
25
2765
by: lnatz | last post by:
Hi, I am writing a shell(project). I would like to use readline, ncurses and/or history to search history. I want to write a function that would recognize the KEY_UP and KEY_DOWN,and search the history. I want the upand down key to act the same as it would in a unix terminal. If anyone could help me, I would greatly appreciate it. Thank you in advance, Natalie
5
2366
by: sniipe | last post by:
Hi, I have a problem with unicode string in Pylons templates(Mako). I will print first char from my string encoded in UTF-8 and urllib.quote(), for example string '£ukasz': ${urllib.unquote(c.user.firstName).encode('latin-1')} and I received this information:
0
7979
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7894
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8281
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8381
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8262
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5847
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2409
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1497
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.