You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

Read a TAB Delimited TXT File in App Engine

2 replies [Last post]
Guest's picture
Guest

Hi,
I am trying to read a tab delimited TXT file in App Engine PeopleCode. I have amount field as 180040 in the text file I would like to read the value and load into number field with decimals ex: 1800.40

How do I do that?

n/a
CompShack's picture
User offline. Last seen 5 years 51 weeks ago. Offline
Joined: 12/09/2007
Posts: 167
File Layout

How are you reading the file in the Application Engine? Are you using File Layout? you should be able to read a number field and specify decimal position using file layouts.

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

Guest's picture
Guest (not verified)
Are you able to do it as

Are you able to do it as said in the previous post ??

If not you can simply read the number as it is and divide it by 100. if the data is greater than certain number.