Help with windows powershell - reading text file & manipulating the data

Hello,
I'm new to windows power shell & need your help/expertise in formatting the below *.txt file.
Could you please provide me with a sample powershell script which can accomplish the below request. Thank you so much for your help in advance.
<name>,<ticker>,<date>,<open>,<high>,<low>,<close>,<vol>,<oi>
GOOG 10-Jan-2014 1165 Put,GOOG140110P01165000,20140114,32.9,32.9,32.9,32.9,0,0
GOOG 10-Jan-2014 1170 Put,GOOG140110P01170000,20140114,40.87,40.87,40.87,40.87,0,0
GOOG 10-Jan-2014 1180 Put,GOOG140110P01180000,20140114,54.8,54.8,54.8,54.8,0,0
GOOG 10-Jan-2014 1190 Put,GOOG140110P01190000,20140114,50.9,50.9,50.9,50.9,0,0
GOOG 10-Jan-2014 1200 Put,GOOG140110P01200000,20140114,60.9,60.9,60.9,60.9,0,0
GOOG 10-Jan-2014 1300 Put,GOOG140110P01300000,20140114,157.8,157.8,157.8,157.8,0,0
PCLN 10-Jan-2014 1170 Call,PCLN140110C01170000,20140114,0.05,0.05,0.05,0.05,0,873
PCLN 10-Jan-2014 1172.5 Call,PCLN140110C01172500,20140114,0.01,0.01,0.01,0.01,0,136
PCLN 10-Jan-2014 1175 Call,PCLN140110C01175000,20140114,0.15,0.15,0.15,0.15,0,666
PCLN 10-Jan-2014 1177.5 Call,PCLN140110C01177500,20140114,0.05,0.05,0.05,0.05,0,174
PCLN 10-Jan-2014 1180 Call,PCLN140110C01180000,20140114,0.02,0.02,0.02,0.02,0,896
PCLN 10-Jan-2014 1182.5 Call,PCLN140110C01182500,20140114,0.07,0.07,0.07,0.07,0,138
PCLN 10-Jan-2014 1185 Call,PCLN140110C01185000,20140114,0.05,0.05,0.05,0.05,0,842
PCLN 10-Jan-2014 1187.5 Call,PCLN140110C01187500,20140114,0.05,0.05,0.05,0.05,0,36
PCLN 10-Jan-2014 1190 Call,PCLN140110C01190000,20140114,0.01,0.01,0.01,0.01,0,909
PCLN 10-Jan-2014 1192.5 Call,PCLN140110C01192500,20140114,0.2,0.2,0.2,0.2,0,88
PCLN 10-Jan-2014 1195 Call,PCLN140110C01195000,20140114,0.04,0.04,0.04,0.04,0,835
PCLN 10-Jan-2014 1197.5 Call,PCLN140110C01197500,20140114,0.25,0.25,0.25,0.25,0,22
PCLN 10-Jan-2014 1200 Call,PCLN140110C01200000,20140114,0.04,0.04,0.04,0.04,0,1073
PCLN 10-Jan-2014 1205 Call,PCLN140110C01205000,20140114,0.05,0.05,0.05,0.05,0,434
PCLN 10-Jan-2014 1210 Call,PCLN140110C01210000,20140114,0.03,0.03,0.03,0.03,0,346
PCLN 10-Jan-2014 1215 Call,PCLN140110C01215000,20140114,0.05,0.05,0.05,0.05,0,288
Z 22-Feb-2014 80 Call,Z140222C00080000,20140114,11.5,11.5,11.5,11.5,4,335
Z 22-Feb-2014 85 Call,Z140222C00085000,20140114,7.83,7.83,7.83,7.83,21,523
Z 22-Feb-2014 90 Call,Z140222C00090000,20140114,5.74,5.74,5.74,5.74,42,422
Z 22-Feb-2014 95 Call,Z140222C00095000,20140114,3.89,3.89,3.89,3.89,37,389
Z 22-Feb-2014 100 Call,Z140222C00100000,20140114,2.54,2.54,2.54,2.54,44,576
Z 22-Feb-2014 105 Call,Z140222C00105000,20140114,1.62,1.62,1.62,1.62,3,117
Z 22-Feb-2014 110 Call,Z140222C00110000,20140114,0.99,0.99,0.99,0.99,15,215
The ticker symbol in above file is max of 19 bytes. The software I use cannot convert this data, as it has a restriction of 14 bytes for ticker field.
I want to reduce the ticker field to 14 bytes using below logic & rewrite the modified symbol in the same column/file.
GOOG140110P01165000 - Ticker explanation is as shown below
Symbol : GOOG  ( 4 bytes)
Year : 14 ( 2 bytes)
Month : 01 ( 2 bytes)
Date : 10 ( 2 bytes)
Call/Put : C or P ( 1 byte) 
Strike : 01165 ( 5 bytes )
Strike (Decimal) : 000 ( 3 bytes)
Since they total to 19 bytes,my requirement is to bring down the ticker field size to 14 bytes using below formula.
1) Reduce year field to 1 byte i.e. 14 can be kept as 4
2) Strike ( Decimal) can be reduced to 1 byte ( drop the ending 2 bytes)
3) Month column ( 2 bytes) & call/put ( 1 byte) can be reduced to 1 byte ( saving of 2 bytes) by replacing 01 & C combination with A , 01 & P combination with B so on as mentioned below.
Month( 2 bytes)
Call/Put ( 1 byte)
Replace with
01
C
A
01
P
B
02
C
C
02
P
D
03
C
E
03
P
F
04
C
G
04
P
H
05
C
I
05
P
J
06
C
K
06
P
L
07
C
M
07
P
N
08
C
O
08
P
P
09
C
Q
09
P
R
10
C
S
10
P
T
11
C
U
11
P
V
12
C
W
12
P
X
So the modified ticker will look like GOOG4B10011650
GOOG - symbol
4 - year which is 2014 in this case 
B- 01 ( jan) & Put (P) is replaced with letter B
10 - Date
01165 - Strike price
0 - Decimal portion of strike price
The output file should look like below.
<name>,<ticker>,<date>,<open>,<high>,<low>,<close>,<vol>,<oi>
GOOG 10-Jan-2014 1165 Put,GOOG410B011650,20140114,32.9,32.9,32.9,32.9,0,0
Thank you for your inputs with this request.
Regards,
Aimforsky

Hi Neothwin,
Thank you for your prompt response. I really appreciate it. My file contains a header record.
I ran the conversion, it converts very fast.
I noticed the decimal portion of strike is lost in the conversion. AAL140110C00023500 must be converted as AAL4A1000235 but instead its showing as AAL4A10000230 ( last byte
should be 5 but it shows as 0)
Also I noticed it puts double quotes ('') in front of every column. I tried to drop ' in the code but it complains.
Also, instead of giving file name in the shell script , is it possible to go thru all files in a folder and convert them? I'm new to this scripting/programming sorry if I ask you the basic questions. Thank you so much for sparing your valuable time on this
request. Have a great day ! 
ORIGINAL FILE<name>,<ticker>,<date>,<open>,<high>,<low>,<close>,<vol>,<oi>
AAL 10-Jan-2014 23.5 Call,AAL140110C00023500,20140115,1.85,1.85,1.85,1.85,0,0
AAL 10-Jan-2014 24 Call,AAL140110C00024000,20140115,5.8,5.8,5.8,5.8,0,0
AAL 10-Jan-2014 24.5 Call,AAL140110C00024500,20140115,2.05,2.05,2.05,2.05,0,0
AAL 10-Jan-2014 25 Call,AAL140110C00025000,20140115,2.3,2.3,2.3,2.3,0,0
AAL 10-Jan-2014 25.5 Call,AAL140110C00025500,20140115,1.35,1.35,1.35,1.35,0,0
AAL 10-Jan-2014 26 Call,AAL140110C00026000,20140115,3.4,3.4,3.4,3.4,0,0
AAL 10-Jan-2014 26.5 Call,AAL140110C00026500,20140115,2.65,2.65,2.65,2.65,0,0
AAL 10-Jan-2014 27 Call,AAL140110C00027000,20140115,2.26,2.26,2.26,2.26,0,0
AAL 10-Jan-2014 27.5 Call,AAL140110C00027500,20140115,1.75,1.75,1.75,1.75,0,0
AAL 10-Jan-2014 28 Call,AAL140110C00028000,20140115,1.45,1.45,1.45,1.45,0,0
AAL 10-Jan-2014 28.5 Call,AAL140110C00028500,20140115,0.9,0.9,0.9,0.9,0,0
AAL 10-Jan-2014 29 Call,AAL140110C00029000,20140115,0.4,0.4,0.4,0.4,0,0
AAL 10-Jan-2014 29.5 Call,AAL140110C00029500,20140115,0.05,0.05,0.05,0.05,0,4812
AAL 10-Jan-2014 30 Call,AAL140110C00030000,20140115,0.05,0.05,0.05,0.05,0,636
AAL 10-Jan-2014 21.5 Put,AAL140110P00021500,20140115,0.08,0.08,0.08,0.08,0,11
AAL 10-Jan-2014 23 Put,AAL140110P00023000,20140115,0.05,0.05,0.05,0.05,0,51
AAL 10-Jan-2014 23.5 Put,AAL140110P00023500,20140115,0.05,0.05,0.05,0.05,0,235
AAL 10-Jan-2014 24 Put,AAL140110P00024000,20140115,0.1,0.1,0.1,0.1,0,77
AAL 10-Jan-2014 24.5 Put,AAL140110P00024500,20140115,0.05,0.05,0.05,0.05,0,292
AAL 10-Jan-2014 25 Put,AAL140110P00025000,20140115,0.05,0.05,0.05,0.05,0,1380
AAL 10-Jan-2014 25.5 Put,AAL140110P00025500,20140115,0.02,0.02,0.02,0.02,0,1549
AAL 10-Jan-2014 26 Put,AAL140110P00026000,20140115,0.1,0.1,0.1,0.1,0,665
AAL 10-Jan-2014 26.5 Put,AAL140110P00026500,20140115,0.02,0.02,0.02,0.02,0,632
AAL 10-Jan-2014 27 Put,AAL140110P00027000,20140115,0.05,0.05,0.05,0.05,0,2161
AAL 10-Jan-2014 27.5 Put,AAL140110P00027500,20140115,0.1,0.1,0.1,0.1,0,310
AAL 10-Jan-2014 28 Put,AAL140110P00028000,20140115,0.01,0.01,0.01,0.01,0,642
AAL 10-Jan-2014 28.5 Put,AAL140110P00028500,20140115,0.05,0.05,0.05,0.05,0,291
AAL 10-Jan-2014 29 Put,AAL140110P00029000,20140115,0.05,0.05,0.05,0.05,0,6728
AAL 10-Jan-2014 29.5 Put,AAL140110P00029500,20140115,0.3,0.3,0.3,0.3,0,0
AAL 10-Jan-2014 30 Put,AAL140110P00030000,20140115,4.3,4.3,4.3,4.3,0,0
AAL 10-Jan-2014 32 Put,AAL140110P00032000,20140115,2.6,2.6,2.6,2.6,0,0
AAL 18-Jan-2014 0.5 Call,AAL140118C00000500,20140115,11,11,11,11,0,180
AAL 18-Jan-2014 1 Call,AAL140118C00001000,20140115,27.9,27.9,27.9,27.9,0,68
AAL 18-Jan-2014 2 Call,AAL140118C00002000,20140115,22.7,22.7,22.7,22.7,0,7
AAL 18-Jan-2014 3 Call,AAL140118C00003000,20140115,17.15,17.15,17.15,17.15,0,10
CONVERTED FILE:"<name>","<ticker>","<date>","<open>","<high>","<low>","<close>","<vol>","<oi>"
"AAL 10-Jan-2014 23.5 Call","AAL4A10000230","20140115","1.85","1.85","1.85","1.85","0","0"
"AAL 10-Jan-2014 24 Call","AAL4A10000240","20140115","5.8","5.8","5.8","5.8","0","0"
"AAL 10-Jan-2014 24.5 Call","AAL4A10000240","20140115","2.05","2.05","2.05","2.05","0","0"
"AAL 10-Jan-2014 25 Call","AAL4A10000250","20140115","2.3","2.3","2.3","2.3","0","0"
"AAL 10-Jan-2014 25.5 Call","AAL4A10000250","20140115","1.35","1.35","1.35","1.35","0","0"
"AAL 10-Jan-2014 26 Call","AAL4A10000260","20140115","3.4","3.4","3.4","3.4","0","0"
"AAL 10-Jan-2014 26.5 Call","AAL4A10000260","20140115","2.65","2.65","2.65","2.65","0","0"
"AAL 10-Jan-2014 27 Call","AAL4A10000270","20140115","2.26","2.26","2.26","2.26","0","0"
"AAL 10-Jan-2014 27.5 Call","AAL4A10000270","20140115","1.75","1.75","1.75","1.75","0","0"
"AAL 10-Jan-2014 28 Call","AAL4A10000280","20140115","1.45","1.45","1.45","1.45","0","0"
"AAL 10-Jan-2014 28.5 Call","AAL4A10000280","20140115","0.9","0.9","0.9","0.9","0","0"
"AAL 10-Jan-2014 29 Call","AAL4A10000290","20140115","0.4","0.4","0.4","0.4","0","0"
"AAL 10-Jan-2014 29.5 Call","AAL4A10000290","20140115","0.05","0.05","0.05","0.05","0","4812"
"AAL 10-Jan-2014 30 Call","AAL4A10000300","20140115","0.05","0.05","0.05","0.05","0","636"
"AAL 10-Jan-2014 21.5 Put","AAL4B10000210","20140115","0.08","0.08","0.08","0.08","0","11"
"AAL 10-Jan-2014 23 Put","AAL4B10000230","20140115","0.05","0.05","0.05","0.05","0","51"
"AAL 10-Jan-2014 23.5 Put","AAL4B10000230","20140115","0.05","0.05","0.05","0.05","0","235"
"AAL 10-Jan-2014 24 Put","AAL4B10000240","20140115","0.1","0.1","0.1","0.1","0","77"
"AAL 10-Jan-2014 24.5 Put","AAL4B10000240","20140115","0.05","0.05","0.05","0.05","0","292"
"AAL 10-Jan-2014 25 Put","AAL4B10000250","20140115","0.05","0.05","0.05","0.05","0","1380"
"AAL 10-Jan-2014 25.5 Put","AAL4B10000250","20140115","0.02","0.02","0.02","0.02","0","1549"
"AAL 10-Jan-2014 26 Put","AAL4B10000260","20140115","0.1","0.1","0.1","0.1","0","665"
"AAL 10-Jan-2014 26.5 Put","AAL4B10000260","20140115","0.02","0.02","0.02","0.02","0","632"
"AAL 10-Jan-2014 27 Put","AAL4B10000270","20140115","0.05","0.05","0.05","0.05","0",”2161"

Similar Messages

  • Help with exporting Deski to text file via Web Intelligence

    We are currently converting from BO version 5 to BO XI rev2. I have a report that must be scheduled to a flie in plain text format. I am using a deski report. When I save as to text, the file is fine. When I schedule it in webi, the file seems to be missing the end of line character for each row in the table, so it cannot be used for an import to another program. Can anybody help with this?-

    well, in that case you need to determine if this issue only happens with a perticular report or all of them, if it happens only with reports imported from 5.x or with newly created reports as well.
    Looks like it is happening only when report is exported from Infoview, not in the Deski client. This might indicate a problem at the Web Apllication server (tomcat or one you use).
    If this issue is happening with any report - it might be a bug. In that case you have no options as there are no more patches for XIR2.
    On the other hand - if all you need is to extract data for consumption in another tool , why not use Data integrator instead ?
    Also, if this desn't work in Deski - does it work if you convert your reports to webi and export from those ?

  • ... reading text file to load data

    Hi all.
    we have a requirement, acc to which we need to read a few tab delimited text file into oracle tables on daily bases.
    i was trying to read it through the utl_file procedure, but while working i found out that there is a limitation in utl_file ... you can only read a complete line, and i had no clue how to use the delimiter to read each column and insert into database.
    Another option i have is to use External table, use these text file as external table and insert data into oracle tables.
    There is one problem where i got stuck, probably due to inexperience.
    One of the files we recieve is like .
    SID, teacher1_Name, teacher1_age, teacher1_sex,teacher2_name,teacher2_age, teacher2_sex......
    while the table structure is like
    SID Teacher_name, age sex .... ............
    Now how can i insert the values for teacher1_age into age column...
    so that my db table will be filled like
    S1 teacher1_name teacher1_age teacher1_sex
    S1 teacher2_name teacher2_age teacher2_sex
    Please also suggest that is my method correct for reading these file by making them external tables and then inserting into our db tables.
    The reason i cant keep the files is that the data comes daily with changed values, so we need to read them daily and then delete or replace with the new one coming with same name and struture the next day..
    Regards

    Look at SQL*Loader
    See also an External Table Example

  • Help with Automator to copy text from multiple files

    Hello,
    I'm new to automator and applescript but it seems like what I'm trying to accomplish is fairly easy.
    I'd like to run a workflow that will open a text file, copy the contents, paste the contents into a given application and then take a screenshot.
    I'd like to be able to do this for several hundred text files.
    I've tried with a Service but can't figure out how to provide the text input after "Get Specified Finder Items".
    Get Specified Finder Items --> Get Contents of TextEdit Document --> Copy to Clipboard --> results in no data.

    You'll need to use Applescript (you could use the Automator Run Applescript Action).
    set recipientAddress to do shell script "cat <filename.txt>"
    set theSubject to "Type your subject here!"
    set theContent to "Type your message content here!"
    tell application "Mail"
      activate
              set theMessage to make new outgoing message with properties {subject:theSubject, content:theContent, visible:true}
              tell theMessage
      make new to recipient with properties {address:recipientAddress}
      -- Uncomment send to Send the Message:
      -- send
              end tell
    end tell

  • Read Text file and count occurences of certain string

    Hello,
    I have a text file with lines of data in it. I would like to read this text file and count how many lines match a certain string of text. 
    For example my text file has this data in it.
    dog,blue,big
    dog,red,small
    dog,blue,big
    cat,blue,big
    If the certain string of text is "dog,blue,big" then the count would return "2".
    Thanks for your help

    Hello,
    Thank you for your post.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses the usage issue of Visual Studio IDE such as
    WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum.
    In addition, if you are working with Windows Forms app. please consult on Windows Forms Forum:http://social.msdn.microsoft.com/Forums/windows/en-US/home?category=windowsforms
    If you are working with WPF app, please consult on WPF forum:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wpf
    If you are working with ASP.NET Web Application, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     for better solution and support.
    Visual Studio Language Forums:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=vslanguages
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Help with opening Adobe Reader and downloading updates

    I can not open Adobe .pdf files any longer (this started yesterday, prior to that I could open adobe files).
    When I double click a .pdf file I get this notice on my screen: Windows cannot access the specified device path or file. You may not have the appropriate permission to access file.
    So I went to the Adobe download site to download a new copy of Adobe.  When I start the download I get this on the screen:  The instruction at "0x0e3a0068" referenced memory at "0x0e3a0068."  The memory could not be written.  Then two options are listed: click OK to terminate or cancel to debug.  So I click on cancel and I get this on my screen: Internet Explorer has closed this webpage to help protect your computer.   A malfunctioning or malicious addon has caused I.E. to close this webpage.
    I don't have AVG running, I do have avast but I've disabled it.  I ran Registry Mechanic and an I.E. erasure program but nothing helps.
    I have gone into I.E. and reduced the security level to its lowest state but no joy.
    So, any ideas or suggestions on what's the problem and how to overcome it would be appreciated.  Thanks, in advance, for your reply.  Jim R.

    Hi Mike..tried that as well but no joy.  A friend of mine was looking at it all and noticed that it was an I.E. thing as far as not letting me redownload the reader so I went to Mozilla Firefox and I could download a new version but....whenever I attempt to open a .pdf file I get that message, "Windows can not open the specified device, path or file. You man not have the appropriate permissions to access the item." 
    Damn...this is irritating as I need to get to some of thos files as I need them for a Journal I'm working on as editor-in-chief. 
    It all worked just fine last Saturday but starting Monday when I was on my flight out to D.C.  no joy. 
    Sigh...Jim R.
    Jim R.
    Date: Tue, 1 Dec 2009 14:50:27 -0700
    From: [email protected]
    To: [email protected]
    Subject: Help with opening Adobe Reader and downloading updates
    Under the help menu, there is an option to repair the installation of reader. Did you try that?
    >

  • Reading text file to make a list

    Hello ,
    I want to read a specific column from the text file if the columns are separated by a space.
    When the whole file (as shown here http://imageshack.com/a/img834/6321/k55hx.jpg
    ) is read its column1 names should be visible in a drop list and whenever a name is selected from the list it should select its respective value from column2 in the text file and display the value in indicator.
    I tried as shown here(http://imageshack.com/a/img829/6821/x4h0.jpg ) and got the output like this(http://imageshack.com/a/img840/1431/ior7.jpg ) but I am unable to get the required.
    Can someone help me out with this.
    Thanks.

    Hi stefan57.
    If I understand you correctly, you are trying to make a dropdown list with the values from the first coloum, and when the user changes this values, you want the data to be shown.
    I have made a small exampled that demostrates how this can be done.
    (please note, that this code should be further improved, eg. by implementing proper error handling)
    Best Regards
    Alex E. Petersen
    Certified LabVIEW Developer (CLD)
    Application Engineer
    Image House PantoInspect
    Attachments:
    Read Text.vi ‏25 KB
    File.txt ‏1 KB

  • Reading text file from database server in OA Page

    Hi Guys,
    I am trying to embed an applet with in an OA Page. The applet is used to mainly for showing Gantt chart. I have to pass my connection details from OA Page to applet, I dont pass directly the connection details to the applet so i am placing all the server details, user name and password in a text file on the database server.
    So from the OA Page i have to read the contents of the file on the database server and pass them to the applet using the <PARAM> tag. My question is how to read the text file from the database server.Any Inputs?
    Thanks in advance for your help.
    Regards,
    Nagesh Manda.

    If the file to be read is on the database, then it makes sense to use the pl/sql code to read the file. Make a call to this pl/sql code from page controller to get back the values.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                           

  • How to read two text files using the Read from spreadsheet.vi and then plot it

    I need to read two text files using the read from spreadsheet function and then plot these files over time.
    The file with the .res extention is the RMS values (dt and df) and the second file contains the amplitude of a frequency spectrum.
    I really appreciate any help..thanks
    Attachments:
    RMS.txt ‏1 KB
    FREQUENCY.txt ‏1 KB

    From NI Example Finder:
    Write to Text File.vi
    Read from Text File.vi
    Jean-Marc
    LV2009 and LV2013
    Free PDF Report with iTextSharp

  • Help with editing a template flash file..

    FIRST OFF..please don't shoot the noobee..I know some folks
    don't like the templates and I appreciate that.
    I have done some reading but not a whole lot about Flash. I
    certainly don't want to BUILD a flash (not yet), but want to edit
    one that is included in a template. I only want to edit the header
    that drops down. It says The Web STudio. I, for example, want it to
    say Marks Studio.
    Ok..the temp comes with Flash/non flash.
    I open w/flash and have a 3 folders: flash, psd and html.
    -flash folder has Images, fla doc and one flash html file
    -PSD folder has 3 psd files
    -html folder has flash folder, images folder, css file and
    one single index.html file.
    I opened the flash folder and found the image.jpg I wanted to
    change to Marks studio.
    I opend the PSD and found the slice that is the same as that,
    then edited it like I want it in PSD, then saved to replace the old
    image. top1. jpg
    Still, it is the same ole one that came with the temp.
    as I said, please don't shoot the noobe. I just wanna edit
    the flash file.
    Thanks for any help.
    Mark

    You'd need Flash to edit the FLA file.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "snipingkid" <[email protected]> wrote in
    message
    news:enev5r$p8l$[email protected]..
    > Hey guys,
    >
    > I need some help with editing a flash template, I have
    the .swf, .fla, and
    > .html file of this thing, I would like however to edit
    something on it....
    > Ive
    > tried everything, I have access to photoshop and
    dreamweaver 8... Im not
    > any
    > good at it but with decent help I could get something
    done. What I would
    > like
    > to edit is just text that flies in.... I would like to
    edit the text, how
    > do I
    > do it.... Thanksj
    >

  • HI,,,How to read text file from my emulators root

    hi friends,
    Actully i m having problem with file connection i.e. i cant read text file from my root of the emulator.....
    i have tried like this...
    plz help me out
    String uri = "file:///C:/WTK22/appdb/DefaultColorPhone/filesystem/root1/New Folder/main.txt";
    InputConnection conn = (InputConnection)Connector.open( uri,Connector.READ );
    InputStream in = conn.openInputStream();
    conn.close();
         for(int j=0;j<12;j++)
         ch=in.read();
         str.append((char)ch);
    par1=str.toString();
    in.close();
         screen4.append(par1);
         display.setCurrent(screen4);

    still its not working.........
    String uri = "file:///C:/WTK22/appdb/DefaultColorPhone/filesystem/root1/readme.txt";
                        FileConnection conn = (FileConnection)Connector.open( uri,Connector.READ);
                        InputStream in = conn.openInputStream();
                        conn.close();
                   String ss="";
                   String str1="";     
                   int ch=0;
                   byte b[]=new byte[753];     
                             ch=in.read(b,0,753);
                             str1= new String(b,0,ch);
                                  ss=str1.substring(493,501);                     
                        screen4.append(ss);
                        display.setCurrent(screen4);
                        }catch(IOException io){}

  • Reading Text Files using Oracle PL/SQL and UTL_FILE

    Hi, experts. I tried to read a text file into oracle. Here is what i did:
    1. Create a text file in the directory: C:\temp\New Text Document.txt
    2. Run the following SQL in PL/SQL:
    CREATE or replace DIRECTORY sampledata AS 'C:\temp\';
    grant read, write on directory sampledata to public;
    3. When I run the following code, it caused an error: ora-29280: invalid directory path. I have alread checked the directory path, it is correct. Would someone know what wrong is my code?
    declare
    f utl_file.file_type;
    s varchar2(3000);
    begin
    f := utl_file.fopen('sampledata','New Text Document.txt','R');
    utl_file.get_line(f,s);
    utl_file.fclose(f);
    dbms_output.put_line(s);
    end;
    Thank you

    Try with a filename without spaces:No problem with spaces
    SQL> declare
      2  f utl_file.file_type;
      3  s varchar2(3000);
      4  begin
      5  f := utl_file.fopen('SAMPLEDATA','New Text Document.txt','R');
      6  utl_file.get_line(f,s);
      7  utl_file.fclose(f);
      8  dbms_output.put_line(s);
      9  end;
    10  /
    line1
    PL/SQL procedure successfully completed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Trying to install Acrobate 8 Standard on PC with Windows 7, 64 bit. During the installation I was asked to provide "File Adobe PDF.dll for Windows Vista. How can I obtain the required file?

    Trying to install Acrobate 8 Standard on PC with Windows 7, 64 bit. During the installation I was asked to provide "File Adobe PDF.dll for Windows Vista. How can I obtain the required file?

    Nothing in the Acrobat 8.x product family is compatible with Windows 7 (or any contemporary OS).
    The Acrobat 8.x product family passed into End of Support way back -- (November 2011).
    The current release of Acrobat (XI) is compatible in Windows 7.
    Be well...

  • How to read text file content in portal application?

    Hi,
    How do we read text file content in portal application?
    Can anyone forward the code to do do?
    Regards,
    Anagha

    Check the code below. This help you to know how to read the text file content line by line. You can display as you require.
    IUser user = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
    IResourceContext resourceContext = new ResourceContext(user);
    String filePath = "/documents/....";
    RID rid = RID.getRID(filePath);
    IResource resource = ResourceFactory.getInstance().getResource(rid,resourceContext);
    InputStream inputStream = resource.getContent().getInputStream();
    BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
    String line = reader.readLine();
    while(line!=null) {
          line = reader.readLine();
         //You can append in string buffer to get file content as string object//
    Regards,
    Yoga

  • How can I read text files from LAN if I only know the hostname?

    I'm new in Java Developing, and dont know the written classes yet. I need help, how to do the following steps?
    <p>1. How can I read text files from LAN if I only know the hostname, or IP address?
    <p>2. How to read lines from text files without read all lines from the beginning of file, just seek to a position.
    (ex. how can I read the 120th line?)
    <p>Please help!
    <p>sorry for the bad english

    I'm new in Java Developing, and dont know the written classes yet. I need help, how to do the following steps?
    1. How can I read text files from LAN if I only know the hostname, or IP address?You need to know the URL of the file. You need to know the hostname, port, protocl and relative path.
    The hostname is server, not file.
    2. How to read lines from text files without read all lines from the beginning of file, just seek to a position.Use the seek() to get to a random byte.
    (ex. how can I read the 120th line?)The only way to find the 120th line is to read the first 120 lines. You can use other file formats to find the 120th line without reading the whole file but to need to be able to detremine where the 120th line is

Maybe you are looking for

  • Errors in Initial Download of Customer_Main from R/3 to CRM 4.0

    Hi I came across couple of errors in BDOc validataion while downloading CUSTOMER_MAIN. I had downloaded all customizing objects listed in help.sap.com, but i still got errors like 'region not defined for country' and 'tax category does not exit'. Can

  • Windows 8 Pre-Load Dual Boot with Windows 7 (T430)

    I ave created Recovery Media for WIndows 8 Preload using the following instructions: http://support.lenovo.com/en_US/downloads/detail.page?DocID=HT076024 I have deleted GPT partition where Windows 8 Preload was installed leaving other partitions, inc

  • Automatic Payment Run Bank Determination

    Hi, I encounter a problem deriving the bank account ID when making payment for an item of payment method "Bank Draft". However, the configuration for the automatic outgoing payment has been done. What can be the reason that the account ID is not deri

  • Best Practices for Using Airport Express to Stream iTunes via Ethernet

    So I've been reading various posts about using Airport Express to stream iTunes and I've been reading various posts about using the Ethernet port on the Express. However, not sure I've yet found an inclusive listing of settings for both. Wondering if

  • CameraRoll.browseForImage() does nothing

    I'm developing on an iPad Mini with iOS 8.1.3 and using Adobe AIR 17.0.0.144. When I call browseForImage() the screen seems to flicker (only the first time I call it) but do anything. Touching anywhere on the screen will trigger a CANCEL event from t