473,408 Members | 2,734 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,408 software developers and data experts.

Question about files and String

Hi,
i have a dataSet which i take customers details and write them to a file.
the details contain numbers ,hebrew and english letters. i need the details
to be written in a specific way, now i have a problem that when i enter
numbers then letters then number again, the order which i entered the details
is broken, how can i keep the order to stay like i wrote it to be?
first i collect all the details and enter them to a temporary string (i.e:
temp_str=temp_str+new_line) and in the end i'm writing the final string to a
file.

another problem i'm having is that if i want to open the file i created with
wordpad i see the hebrew letters as gibberish but if i open it with NotePad i
see it ok, why is that?

thanks,
Gidi.

Nov 17 '05 #1
1 1260
Hi,

Not quite understand how the order of the line is broken or changed for that
matter. can you show a code snippet of it?

Tip:
collect your details using StringBuilder , not concatening strings!!! the
latter is very costly performance wise.

What encoding r u using?

probably the problem is that wordpad does not know how to handle the
encoding and notepad does.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Gidi" <sh*****@hotmail.com.dontspam> wrote in message
news:AA**********************************@microsof t.com...
Hi,
i have a dataSet which i take customers details and write them to a file.
the details contain numbers ,hebrew and english letters. i need the
details
to be written in a specific way, now i have a problem that when i enter
numbers then letters then number again, the order which i entered the
details
is broken, how can i keep the order to stay like i wrote it to be?
first i collect all the details and enter them to a temporary string (i.e:
temp_str=temp_str+new_line) and in the end i'm writing the final string to
a
file.

another problem i'm having is that if i want to open the file i created
with
wordpad i see the hebrew letters as gibberish but if i open it with
NotePad i
see it ok, why is that?

thanks,
Gidi.

Nov 17 '05 #2

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

Similar topics

2
by: Matt | last post by:
Hello, I am writing a script that opens needs to get a listing of files in a directory, print that listing to a file and use that file as a quasi ftp control file. My problem is that when I...
1
by: Dan | last post by:
Could someone please help me with auto importing a series of data files into an Access table. I tried to follow code given below in a previous messagebut i'm getting error messages. Here's my...
10
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read...
4
by: Vili | last post by:
Hi all. I am trying to create a dynamic website that has links to the files in a specicif folder. Files in the folder will be changing daily. So far I have put a textbox to html and code in...
3
by: Debbie Carter | last post by:
Can XML files be easily encrypted?
7
by: jason | last post by:
In the microsoft starter kit Time Tracker application, the data access layer code consist of three cs files. DataAccessHelper.cs DataAcess.cs SQLDataAccessLayer.cs DataAcccessHelper appears...
42
by: mellyshum123 | last post by:
I need to read in a comma separated file, and for this I was going to use fgets. I was reading about it at http://www.cplusplus.com/ref/ and I noticed that the document said: "Reads characters...
6
by: JonathanOrlev | last post by:
Hello everyone, I have a newbe question: In Access (2003) VBA, what is the difference between a Module and a Class Module in the VBA development environment? If I remember correctly, new...
19
by: frankiespark | last post by:
Hello all, I was perusing the internet for information on threading when I came across this group. Since there seems to be a lot of good ideas and useful info I thought I'd pose a question. ...
0
by: ChopStickr | last post by:
I have a custom control that is embedded (using the object tag) in an html document. The control takes a path to a local client ini file. Reads the file. Executes the program specified in...
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: 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?
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:
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.