cancel
Showing results for 
Search instead for 
Did you mean: 

Convert Excel or csv files to ASCII format

Sudersan_RaoS
Level 2
HI 

I need to convert excel/csv files to ASCII format. Is there a way to do so using Blueprism

------------------------------
Sudersan Rao S
------------------------------
3 REPLIES 3

PabloSarabia
Level 11
Hi @Sudersan Rao S,

You only can change the format to CSV files. Excel file are not formatted as such because it is not a plain text file.

To change this you can use some code, cause I think there is no specific VBO for this.

I modify a little bit the VBO "Utility - File Management" to add new action called "Change encoding to Ascii". You only need to give as input parameter the file path.

The code behind is simple:

Dim text = File.ReadAllText(strFileName, Encoding.Default)

File.WriteAllText(strFileName, text, Encoding.ASCII)

Hope this helps you!

See you in the Community, bye :)​

------------------------------
Pablo Sarabia
Solution Manager & Architect
Altamira Assets Management
Madrid
------------------------------

Hi Pablo Sarabia,

Can we do the same for .txt files?

------------------------------
Arun Kumar
------------------------------

Hi, Arun Kumar, yes, you can!

------------------------------
Emerson Ferreira
Cons, Intelligent automation
Avanade Brasil
Recife
+5581988869544
If my answer helped you? Mark as useful!
------------------------------
Sr Cons at Avanade Brazil