473,320 Members | 1,920 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,320 software developers and data experts.

Writing output in unix format (vb.net)

Hello! Sorry...I accidentally posted the last message before finishing it.

How do you write a file in unix format from vb.net? I need it in unix format to complete a CIM load in Progress.

I am trying to use the following code to write but this is not working properly.

outfilew.Write(group6)
outfilew.Write(Environment.NewLine)

If I take the data and convert it to unix thru a utility it then works properly.

Thanks for your time!

From http://www.developmentnow.com/g/38_0...nguages-vb.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com
Nov 21 '05 #1
2 1589
Lyle,

The question on your original answer stays.

It has to do with the GetEncoding from the encode class.

http://msdn.microsoft.com/library/de...odingTopic.asp

I hope this helps,

Cor
Nov 21 '05 #2


see the answer of Phil in your previous post
i have looked it up in one of our old applications that comunicates with
text files on a file share to a Unix machine
well in VB6 we just wrote a textline and used the linefeed as line ending
character

so phil`s example is the one you need i guess


"Lyle A. Sieren" <no****@developmentnow.com> wrote in message
news:51**********************************@msnews.m icrosoft.com...
Hello! Sorry...I accidentally posted the last message before finishing
it.

How do you write a file in unix format from vb.net? I need it in unix
format to complete a CIM load in Progress.

I am trying to use the following code to write but this is not working
properly.

outfilew.Write(group6)
outfilew.Write(Environment.NewLine)

If I take the data and convert it to unix thru a utility it then works
properly.

Thanks for your time!

From http://www.developmentnow.com/g/38_0...nguages-vb.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com

Nov 21 '05 #3

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

Similar topics

2
by: Bell | last post by:
Does anybody know how to make DOM to output (transform) XML file in decent format. Now it put everything in one line. :( Rgds, Jun
4
by: Peter Ammon | last post by:
Does anyone ever write the arguments to printf()-like functions under the corresponding format specifier? printf("My name is %s and I am %u years old\n", name, age); If the arguments...
5
by: Lyle A. Sieren | last post by:
Hello! Is there a way to output text in a unix format from vb.net? I am trying to complete a CIM load in Progress and I need the data to be in unix format. I tried using the following code...
4
by: PengYu.UT | last post by:
Suppose I have a dos format text file. The following python code will print ^M at the end. I'm wondering how to print it in unix format. fh = open(options.filename) for line in fh.readlines()...
1
by: bond007 | last post by:
Hi, Am writing an .net windows application in which i have to connect to IBM MQ on remote machine running unix to post messages. This is a tool kinda thing for an enterprise application. this is...
0
by: ekamberreddy | last post by:
I want to Create a UNIX scripts, which will run in background and will do following activities: 1. Check for certain files, which will start with given names, in a define location. The name and...
2
by: johnperl | last post by:
i am working on the script as below, i want an output according to the format. i am trying to put everything in one loop but cannot figure out the way to do so. could anyone please help me with this....
1
by: Marcin Wiszowaty | last post by:
Hello, I work at a company that has 2 development enviroments. One Unix which i dont know anything about and the othe vs.net 03 with MSSQL server 2000 for db. How can i cause applications...
1
by: Alessandro | last post by:
Hi list! A quick question (and I hope a quick answer!). I have a Windows Server 2003 R2 SP2 box where MS SQL 2000 SP4 is running. I have a debian "sarge" box running apache 2.0.54-5sarge2 and...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.